3C科技 娛樂遊戲 美食旅遊 時尚美妝 親子育兒 生活休閒 金融理財 健康運動 寰宇綜合

Zi 字媒體

2017-07-25T20:27:27+00:00
加入好友
C# 修改+抓取+顯示 軟體版本資訊 資料來源: https://stackoverflow.com/questions/909555/how-can-i-get-the-assembly-file-version   //— //AssemblyInfo.cs [assembly: AssemblyVersion(“0.1.1.8”)] [assembly: AssemblyFileVersion(“2017/12/25 09:39”)] //—   //— //UI //讀取AssemblyInfo.cs內的版本資訊         private static System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();         private static FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);         private static Assembly assem = Assembly.GetEntryAssembly();         private static AssemblyName assemName = assem.GetName();         private static Version ver = assemName.Version;         private static string version = ver.ToString().Replace(“.”, “”) + ” [” + fvi.FileVersion + “]”;         private static string productVersion = “-V” + version; //—

本文由jashliaoeuwordpress提供 原文連結

寫了 5860316篇文章,獲得 23313次喜歡
精彩推薦