|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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/ |
|
|