473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 6262
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: shea martin | last post by:
Is there a way to keep track of a build number within a program? Essentially incrementing a #define everytime the program is compiled (at link time would be even better, though tougher to...
9
by: Abe Frohnman | last post by:
I'm wondering how I can access the version info within AssemblyInfo.cs in my program? I'd like to output the version of my program in a text label but I can't find any clear examples on how to do...
5
by: Aaron | last post by:
How does the build number works? right now my assembly is version 1.0.1235.33799 it doesn't change when i re-compiled it. Thanks.
2
by: Mark | last post by:
In the AssemblyInfo.cs page of a ASP.NET project, there is a defaulted property of: It's my understanding that this indicates a Major Version of 1, a Minor Version of 0, and a Build and...
8
by: Robert Misiak | last post by:
Is it possible to manually change the auto-build number used in VS.NET? Thanks, Robert
5
by: cameron | last post by:
Is it possible to get the build date, (not the version), of a dll? -Cam
8
by: S. HP | last post by:
How can I make a build number that increases for each build automatically in a ASP.NET project, as I used to have in VB 6.0 ? Regards, SAHP
4
by: Pietro | last post by:
Thanks for the last answer, but now how can i restart the count of the Build and Revision numbers of a dll in VS.Net. Thanks Pietro
3
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET...
5
dlite922
by: dlite922 | last post by:
Hey guys, I've built applications and I've always wanted my own version and build number that's more like bigger applications. Requirements: 1. The version should be manual (besides...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.