I know that I can do this to get the app's official (release/publish) version number:
string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
this.Text = String.Format("Platypi R Us - version {0}", version);
...but this only shows a "Publish version" of my app* ("1.0.0.0"). I want to show the build number.
- From the Project | Properties | Publish tab.
Barring that, or in addition to that, I'd like to show the date and time of the last build, so that it says "Platypi R Us - version 3.14 (7/17/2012 16:22)"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…