Version Numbers

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

Here's a dumb question - how can I find out the version number of my program
in code. I don't want to have to manually set it every time. I'd like to be
able to get the version much like if you right click on the exe and go to
version.

TIA - Jeff.
 
UJ said:
Here's a dumb question - how can I find out the version number of my program
in code. I don't want to have to manually set it every time. I'd like to be
able to get the version much like if you right click on the exe and go to
version.

Use AssemblyVersionAttribute to specify the version, and
Assembly.GetName().Version to retrieve it at runtime.
 

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