Include the System.Reflection namespace into your file and then call
Assembly.GetCallingAssembly().GetName().Version.ToString(); from
your code. Note that the version class also provides properties to get
Minor, Major, Build and Revision seperatly if you need to.