怎样取得当前Assembly的版本号

2020-07-08 22:38:53 码农 1828

 

我们可以使用下面的代码来得到Assembly中的版本号:

Process current = Process.GetCurrentProcess(); 
FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(current.MainModule.FileName); 
Console.WriteLine(myFileVersionInfo.FileVersion);
—— 完 ——
  • VS2015 当前不会命中断点问题
  • 四季是怎样划分的
  • 甲股票当前市价20元,市场上有以该股票为标的资产的看涨期权
  • 甲房地产公司2015 年销售自行开发的商业房地产项目,取得收
  • 根据物权法律制度的规定,以出让方式取得土地使用权的,转让房地
  • 甲广告公司(下称甲公司)为增值税一般纳税人。2016年8月,甲公司取得
  • 根据企业所得税法律制度的规定,纳税人取得的下列收入,应计入应
  • Unity报错:error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
  • 对于在某一时点履行的履约义务,企业应当在客户取得相关商品控制
  • 尼克松主义提出的背景、内容及其实施是怎样的?

© CopyRight 2014~2024 薄学网.