Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-01-2004, 10:59 AM
vdrumman vdrumman is online now
Registered User
 
Join Date: 10-28-2004
Posts: 2
Setting .NET Setup version

In our automated build process for VB.NET and C# projects, we generally perform a build of all of the projects within a solution first, then we use the "Get Version Numbers" action to retrieve the new version numbers from a given project within the solution into the VSNET_PROJ_VER and VSNET_ASSEM_VER macros. This all works great, and the values we get back look something like:

1.0.1001.12345

I'd like to be able to use the value from one of those macros and update the setup version within a .vdproj file, however that file only accepts a 3-parameter version number format (eg. 1.0.1001). I've downloaded the setupprop.bld example within the "How do I update the properties in a VS.NET Setup project?" post, but not being proficient in regex I'm having trouble figuring out the right combination of characters to trim the revision number.

I'd like my build script to work regardless of whether the VB/C# project has a revision number or not (sometimes we leave that parameter off -- lack of standards mainly at the moment).

Any help or suggestions would be appreciated...thanks!
Reply With Quote
  #2  
Old 12-01-2004, 05:37 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Here is a sample that demonstrates a way to do this (using script to convert a 4 part version to a 3 part). It should handle 3 part versions as well (but will probably fail with a 2 part version).
Attached Files
File Type: bld vdproj_versionupdate.bld (2.1 KB, 1662 views)
Reply With Quote
  #3  
Old 12-02-2004, 04:22 PM
vdrumman vdrumman is online now
Registered User
 
Join Date: 10-28-2004
Posts: 2
That approach works like a champ -- thanks a ton!
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 01:03 AM.


Copyright © 1999-2023 Kinook Software, Inc.