PC Review


Reply
 
 
guy
Guest
Posts: n/a
 
      30th Dec 2004
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


 
Reply With Quote
 
 
 
 
=?ISO-8859-2?Q?Marcin_Grz=EAbski?=
Guest
Posts: n/a
 
      30th Dec 2004
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
>
>

 
Reply With Quote
 
=?ISO-8859-2?Q?Marcin_Grz=EAbski?=
Guest
Posts: n/a
 
      30th Dec 2004
ERRATA

> Control.ProductVersion (a string version x.y.build_nr.z)

 
Reply With Quote
 
tribal
Guest
Posts: n/a
 
      30th Dec 2004

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
>
>
>.
>

 
Reply With Quote
 
guy
Guest
Posts: n/a
 
      30th Dec 2004
Just what I was looking for - thanks.

"Marcin Grzębski" <(E-Mail Removed)> wrote in message
news:cr0qch$hhu$(E-Mail Removed)...
> ERRATA
>
>> Control.ProductVersion (a string version x.y.build_nr.z)



 
Reply With Quote
 
guy
Guest
Posts: n/a
 
      30th Dec 2004
Just what I was looking for - thanks.

"tribal" <(E-Mail Removed)> wrote in message
news:11bf01c4ee67$f5256f90$(E-Mail Removed)...
>
> 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
>>
>>
>>.
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need info on first build hands on DIY PC 6 23rd Oct 2007 01:55 AM
The Next Build Shall be RTM guys not any other builds unless MS decides to do one more build because of bugs before RTM RC2 build 5477 is the last build before RTM Drew Windows Vista General Discussion 8 13th Oct 2006 12:41 AM
desktop build info =?Utf-8?B?TWlrZSBH?= Windows Vista General Discussion 0 18th Jun 2006 08:58 PM
any way to remove build info on desktop? vista user Windows Vista General Discussion 3 10th May 2006 11:39 AM
Determining build info? Bill Taylor Windows XP Hardware 2 28th Feb 2004 08:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:24 PM.