当前位置:网站首页>C get the version number of exe - file version and assembly version
C get the version number of exe - file version and assembly version
2022-06-25 07:44:00 【※※ Bingxin ※※】
adopt System.Diagnostics.FileVersionInfo.GetVersionInfo Get the file version , The corresponding [assembly: AssemblyFileVersion("")], instead of [assembly: AssemblyVersion("")]. Right click the file attribute to see the file version ( Or product version ).
What you get from the following code is assembly edition [assembly: AssemblyVersion("1.0.0.0")], as follows :
var softwareVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
If you want to get the file version of the current program , The code is :
System.Windows.Forms.Application.ProductVersion.ToString();
边栏推荐
- What common APIs are involved in thread state changes
- AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
- OAuth 2.0一键登录那些事
- Three years of continuous decline in revenue, Tiandi No. 1 is trapped in vinegar drinks
- My debut is finished!
- ELK + filebeat日志解析、日志入库优化 、logstash过滤器配置属性
- Modular programming of digital light intensity sensor module gy-30 (main chip bh1750fvi) controlled by single chip microcomputer (under continuous updating)
- Home environment monitoring system design (PC version) (mobile app version to be determined)
- Chuantu microelectronics 𞓜 subminiature package isolated half duplex 485 transceiver
- Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
猜你喜欢
PI Ziheng embedded: This paper introduces the multi-channel link mode of i.mxrt timer pit and its application in coremark Test Engineering
Mysql database import SQL file display garbled code
线程状态变化涉及哪些常用 API
[batch dos-cmd command - summary and summary] - add comment command (REM or::)
【批处理DOS-CMD命令-汇总和小结】-外部命令-cmd下载命令、抓包命令(wget)
Full range of isolator chips with integrated isolated power supply
对链表进行插入排序[dummy统一操作+断链核心--被动节点]
Application scheme | application of Sichuan earth microelectronics ca-is398x in PLC field
STL教程4-输入输出流和对象序列化
“空间转换”显著提升陡崖点云的地面点提取质量
随机推荐
指南针可以开股票账户吗?安全吗?
Chuantu microelectronics high speed and high performance rs-485/422 transceiver series
Ltpowercad II and ltpowerplanner III
图扑软件数字孪生 3D 风电场,智慧风电之海上风电
VectorDraw Web Library 10.10
海思3559 sample解析:vio
OAuth 2.0一键登录那些事
[batch dos-cmd command - summary and summary] - application startup and call, service and process operation commands (start, call, and)
Collection of common terms and meanings in forestry investigation based on lidar
How to use printf of 51 single chip microcomputer
Explain distributed raft with dynamic diagram
【pytest】修改allure报告中的logo及参数化
Sichuan Tuwei ca-is3105w fully integrated DC-DC converter
栅格地图(occupancy grid map)构建
【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
Sichuan earth microelectronics high performance, high integration and low cost isolated 485 transceiver
VectorDraw Developer Framework 10.10
稳压二极管的原理,它有什么作用?
【批處理DOS-CMD命令-匯總和小結】-外部命令-cmd下載命令、抓包命令(wget)
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘