查組件版本

image
AssemblyInfo.cs
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
 
//若要透過程式查詢
MessageBox.Show(Application.ProductVersion.ToString()) ;// AssemblyFileVersion
System.Reflection.Assembly assm = System.Reflection.Assembly.GetExecutingAssembly();
MessageBox.Show(assm.GetName().Version.ToString());  //AssemblyVersion
MessageBox.Show(assm.ImageRuntimeVersion.ToString());  //.NET RunTime Version
 
若要在 Windows 的新增/移除呈現程式的版本,則需要改 Setup 專案的 Version 屬性
image 

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: