Content.Text = "程序集版本:" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() +" ";
读取的是AssemblyInfo.cs文件的[assembly: AssemblyVersion("1.0.1.11")]。
Content.Text += "文件版本:" + Application.ProductVersion.ToString() +"
";
Content.Text += "部署版本:" + System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString();