Tags: | Categories: Code Snippets Posted by Vitaly Zayko on 10/31/2008 11:46 AM | Comments (0)

First of all: in this post I'm talking about Assembly version, not its file version which is different thing:

Here you go:

/// <summary>
/// Returns version of the current Assembly
/// </summary>
/// <returns>Version string in format x.x.x.x</returns>
private string GetAppVersion()
{
   return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
Comments are closed