1. 程式人生 > >c#獲取程序版本號

c#獲取程序版本號

() ati ref rod .text string span name 部署

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();

c#獲取程序版本號