469,591 Members | 1,989 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.

Build number

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
4 6030
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

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
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
Application.ProductVersion
Apr 3 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by shea martin | last post: by
9 posts views Thread by Abe Frohnman | last post: by
5 posts views Thread by Aaron | last post: by
2 posts views Thread by Mark | last post: by
8 posts views Thread by Robert Misiak | last post: by
5 posts views Thread by cameron | last post: by
8 posts views Thread by S. HP | last post: by
4 posts views Thread by Pietro | last post: by
3 posts views Thread by prabhupr | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.