473,441 Members | 1,895 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,441 software developers and data experts.

build info

guy
Is there a built in variable in C# that will give me the build number or
version number of a project such that I can write that out to reports etc?

Thanks
Nov 16 '05 #1
5 1343
Hi,

Yes, there is!

Control.ProductVersion (a string version x.y.z.build_nr)
or
Assembly.GetName().Version (.Build)

HTH
Marcin

Is there a built in variable in C# that will give me the build number or
version number of a project such that I can write that out to reports etc?

Thanks

Nov 16 '05 #2
ERRATA
Control.ProductVersion (a string version x.y.build_nr.z)

Nov 16 '05 #3

Application.ProductVersion should give you a project
version which is of the following format

Major.Minor.Build.Release

Hope this helps
-----Original Message-----
Is there a built in variable in C# that will give me the build number orversion number of a project such that I can write that out to reports etc?
Thanks
.

Nov 16 '05 #4
guy
Just what I was looking for - thanks.

"tribal" <an*******@discussions.microsoft.com> wrote in message
news:11****************************@phx.gbl...

Application.ProductVersion should give you a project
version which is of the following format

Major.Minor.Build.Release

Hope this helps
-----Original Message-----
Is there a built in variable in C# that will give me the

build number or
version number of a project such that I can write that out

to reports etc?

Thanks
.

Nov 16 '05 #5
guy
Just what I was looking for - thanks.

"Marcin Grzębski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:cr**********@atlantis.news.tpi.pl...
ERRATA
Control.ProductVersion (a string version x.y.build_nr.z)

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
7
by: kackson | last post by:
Hi. Each time I right click on an exe file, say Acrobat.exe, and look at the properties page, I could see information such as company name, version and build number, etc. of the application. How...
7
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this...
3
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build...
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...
0
by: Andrew Ayre | last post by:
Hi, I can't seem to get the library built, and any help is greatly appreciated. Here is the info: Windows XP Borland C++ Builder 5 Latest Boost source code (downloaded at the weekend) Windows...
1
by: mac | last post by:
I just put C# express editiion on my son's computer so he can learn how to code, and we've run into a weird problem. Whenever he makes a change to his code and hits F6 (build) the IDE reports...
1
by: zaheermabbas | last post by:
Hello All, I have been following the release documentation of axis, i wanted the axis2.war by building the sources, i have downloaded the source, and as it is specified in the doc to build the...
3
by: Bob Johnson | last post by:
It is my understanding - and please correct me if I'm wrong - that when building a project in debug mode, I can deploy the .pdb file along with the ..exe and thereby have access to the specific...
3
by: barcrofter | last post by:
This seems like a silly question -- How can I read the actual publish version build data??. When I use: With My.Application.Info Version.Text = "Version: " _ + Format(.Version.Major +...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.