Version number

  • Thread starter Thread starter john sutor
  • Start date Start date
J

john sutor

How can you get the version of your executable when you have multiple DLL in
your solution?
 
John:

You can use Assembly.GetExecutingAssembly and the AssemblyVersion Attribute
 
John,

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.

Hope this helps,

//Andreas Håkansson
 
Back
Top