可能重複:
How can I display the Build number and/or DateTime of last build in my app?如何獲取我的應用程序的最後寫入或構建時間?
我想,當我的應用程序的建立是爲了在標題欄的最後日期時間追加。但這個代碼:
DateTime lastWriteTime = File.GetLastWriteTime(Assembly.GetExecutingAssembly().GetName().ToString());
this.Text = String.Format("Platypi R Us; Built on {0}", lastWriteTime);
...索賠是在400多年前(在1600年);我覺得不太可能。
你剛纔不是問這個問題?http://stackoverflow.com/questions/11532705/how-can-i-display-the-build-number-and-or-date-of-last-build-in-my-app – zeroef 2012-07-18 16:17:25
@zeroef:不,但是類似;我放棄了在包括版本信息,因爲這只是像「1.0.0.0」和內部編號不可用。所以我現在正在建立一個「最後建成時間」值,這是工作。 – 2012-07-18 18:04:28