Created
October 14, 2010 17:04
-
-
Save davidalpert/626572 to your computer and use it in GitHub Desktop.
GetVersionStamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Gets the version stamp from your assembly info. | |
/// </summary> | |
/// <remarks> | |
/// source: http://mikehadlow.blogspot.com/2010/10/use-single-version-file-for-all.html | |
/// </remarks> | |
public string GetVersionStamp() { | |
Version v = Assembly.GetExecutingAssembly().GetName().Version; | |
string versionStamp = String.Format("Version: {0}.{1}.{2}.{3}", v.Major, v.Minor, v.Build, v.MinorRevision); | |
return versionStamp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment