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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top