Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Unable to increment VSNET_PROJ_VER via macro (https://www.kinook.com/Forum/showthread.php?t=2696)

andy t 06-08-2007 01:26 PM

Unable to increment VSNET_PROJ_VER via macro
 
Greetings,

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:

However, I have another VB pro script, where the version number is successfully incremented.
What's going on ?!

kinook 06-11-2007 07:53 AM

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: http://www.visualbuild.com/Manual/vsnetversionstab.htm


All times are GMT -5. The time now is 01:52 AM.


Copyright © 1999-2023 Kinook Software, Inc.