By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,991 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,991 IT Pros & Developers. It's quick & easy.

Build number

P: n/a
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.
Mar 31 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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?
*** Sent via Developersdex http://www.developersdex.com ***
Mar 31 '06 #2

P: n/a

in fact replace the .FullName with .GetName().Version.ToString() and it
extracts the version number for you.
*** Sent via Developersdex http://www.developersdex.com ***
Mar 31 '06 #3

P: n/a
That will do me.

Thanks muchly.

"Anthony Brown" <an*******@devdex.com> wrote in message
news:uD**************@TK2MSFTNGP09.phx.gbl...
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?
*** Sent via Developersdex http://www.developersdex.com ***

Mar 31 '06 #4

P: n/a
Application.ProductVersion
Apr 3 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.