Build number

  • Thread starter Thread starter Greg Smith
  • Start date Start date
G

Greg Smith

Is there a way to read the build number when you compile?

I would like to display the build number on the "About" screen.


Any help is greatly appreciated.
 
you can get the assembly version number, as part of the assembly name
using:

string s = System.Reflection.Assembly.GetExecutingAssembly().FullName;

which gives:

Test1, Version=1.0.2281.26155, Culture=neutral, PubliKeyToken=null

that any use?
 
in fact replace the .FullName with .GetName().Version.ToString() and it
extracts the version number for you.
 

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