I have been using this code to obtain my programs version:
public string progVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
You could use the
Assembly property of a known type via
typeof which is defined in your application to ensure you got the 'correct' assembly and then retrieve the version of that, e.g.