当前位置:网站首页>C#获取exe的版本号-文件版本and程序集版本
C#获取exe的版本号-文件版本and程序集版本
2022-06-25 06:39:00 【※※冰馨※※】
通过System.Diagnostics.FileVersionInfo.GetVersionInfo获得是文件版本,即对应[assembly: AssemblyFileVersion("")],而不是[assembly: AssemblyVersion("")]。 在右键文件属性中看到的也是文件版本(或者产品版本)。
而通过以下代码获取的是assembly版本[assembly: AssemblyVersion("1.0.0.0")],如下:
var softwareVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();如果要获得当前程序的文件版本,则代码为:
System.Windows.Forms.Application.ProductVersion.ToString();边栏推荐
- Estimation of dense forest volume based on LIDAR point cloud with few ground points
- What is the difference between norflash and nandflash
- [pytest] modify the logo and parameterization in the allure Report
- Sichuan earth microelectronics 8-channel isolated digital input receiver
- College entrance examination voluntary filling, why is the major the last consideration?
- STL教程4-输入输出流和对象序列化
- RTKLIB-b33版本中GALILEO广播星历存储问题
- The principle of Zener diode, what is its function?
- What if there is no point in data visualization?
- Orcad Schematic常用功能
猜你喜欢

Tupu software digital twin 3D wind farm, offshore wind power of smart wind power

Zhugeliang vs pangtong, taking distributed Paxos

Chuantu microelectronics breaks through the high-end isolator analog chip market with ca-is3062w

The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse

Why "New Year's Eve", the original memory burst!

Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"

Path planner based on time potential function in dynamic environment

ELK + filebeat日志解析、日志入库优化 、logstash过滤器配置属性

Research on 3D model retrieval method based on two channel attention residual network - Zhou Jie - paper notes

FairMOT yolov5s转onnx
随机推荐
useMemo模拟useCallback
关于硬件问题造成的MCU死机,过来人简单的谈一谈
[pytest] modify the logo and parameterization in the allure Report
Harmony美食菜单界面
Domestic MCU perfectly replaces STM chip model of Italy France
GUI pull-down menu of unity3d evil door implementation dropdown design has no duplicate items
How comfortable it is to use Taijiquan to talk about distributed theory!
LeetCode 每日一题——515. 在每个树行中找最大值
Why "New Year's Eve", the original memory burst!
Zhugeliang vs pangtong, taking distributed Paxos
RTKLIB-b33版本中GALILEO广播星历存储问题
【UVM入門 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常規方法、寄存器模型的應用場景
用动图讲解分布式 Raft
Harmony food menu interface
Static bit rate (CBR) and dynamic bit rate (VBR)
OpenMP入门
Debian introduction
Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"
Orcad Schematic常用功能
Access to foreign lead domain name mailbox