Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] User Tips, Tricks and Samples
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 12-27-2005, 12:04 PM
mweinberger mweinberger is online now
Registered User
 
Join Date: 12-23-2005
Posts: 40
Setting 'Major' and 'Minor' VS2005 version assembly fields only

Is it possible to update the 'major' and 'minor' (the first two) version fields only but leave the last two (build number and revision) alone? I already have my VS2005 project set up in such a way that the project itself updates the last two fields automatically at build time.

I'd like a way to set using Visual Build Professional the first two fields to the major and minor values as set by the projecct macro values that I have set.

Thank you very much and a pre Happy New Year.

Martin
Reply With Quote
  #2  
Old 12-27-2005, 04:14 PM
mweinberger mweinberger is online now
Registered User
 
Join Date: 12-23-2005
Posts: 40
Found it!

Microsoft created an AssemblyInfoTask add-on that allows for the automatic increment of the build and revision numbers. It also allows for the manual setting of the major and minor version numbers in the project file. I just didn't realize to add:

<PropertyGroup>
<AssemblyMajorVersion>8</AssemblyMajorVersion>
<AssemblyMinorVersion>0</AssemblyMinorVersion>
<AssemblyFileMajorVersion>8</AssemblyFileMajorVersion>
<AssemblyFileMinorVersion>0</AssemblyFileMinorVersion>
</PropertyGroup>

the <PropertyGroup> portion. The solution is to "update" this file at that section to set the appropriate major and minor version numbers.

Cool!

The path for all that are interested is:

http://www.gotdotnet.com/codegallery...9-16107919f93e

I hope this helps.

Martin A. Weinberger
Butterflyvista
http://www.butterflyvista.com/
Reply With Quote
Reply


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 Off
HTML code is Off



All times are GMT -5. The time now is 07:14 PM.


Copyright © 1999-2023 Kinook Software, Inc.