by Vitaly Zayko
31. October 2008 11:46
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();
}