I am thinking of the following design:
static class AppVersion
{
public static string BuildDate
{
get; set;
}
public static string Version
{
get; set;
}
public static string GetVersion
{
get; set;
}
}
A few questions on this:
- How can I get the build date?
- How can I print a date in a nice format?
- How can I obtain and print the Visual Studio version in a nice format?
- It is probably a bad idea to hard code the version into the binary, so I put the version into assembly information. How can I programmatically get it?