Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Thread Tools Rate Thread Display Modes
Old 06-08-2007, 02:26 PM
andy t andy t is online now
Registered User
Join Date: 04-24-2007
Posts: 2
Unable to increment VSNET_PROJ_VER via macro


In my script, I want to be able to retrieve a version of a VS 2005 solution and increment it.
To retrieve, I use the build in step which populates the VSNET_PROJ_VER temp variable.
For the increment setp, I use the "Set macro" type, and have the following script in the Value: field:
[IncrementVersion(Application.ExpandMacros("%VSNET_ PROJ_VER%"))]
when the increment step is run, I get the following error:
"Error expanding macros or script in property MacroValue: <Error at Line 1, Column 1 (Type mismatch: 'IncrementVersion')>

However, I have another VB pro script, where the version number is successfully incremented.
What's going on ?!
Reply With Quote
Old 06-11-2007, 08:53 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,997
Most likely, IncrementVersion is a project script function defined only in the other (working) .bld file. Also, there is a simpler way to increment the version in a VS solution/project/version file:
Reply With Quote

Thread Tools
Display Modes 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 Off
HTML code is Off

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

Copyright 1999-2023 Kinook Software, Inc.