Skip to content

Instantly share code, notes, and snippets.

@davidalpert
Created October 14, 2010 17:04
Show Gist options
  • Save davidalpert/626572 to your computer and use it in GitHub Desktop.
Save davidalpert/626572 to your computer and use it in GitHub Desktop.
GetVersionStamp
/// <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