c#获取程序版本号
c#获取程序版本号
Properties-AssemblyInfo.cs里面改
或者项目-右键-属性-应用程序-程序集信息
Content.Text = "程序集版本:" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() +"\n";
Content.Text += "文件版本:" + Application.ProductVersion.ToString() +"\n";
Content.Text += "部署版本:" + System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString();
欢迎讨论,相互学习。
cdtxw@foxmail.com

浙公网安备 33010602011771号