View Single Post
  #2  
Old 07-29-2005, 04:32 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
The Make VC6 action won't handle a comma-delimited value properly, but you can use the Make VS.Net action to update the resource file before you use the Make VC6 action to build since the Make VS.Net action will handle your version value correctly.

Just add a Make VS.Net step before your Make VC6 step, and specify the .rc file as the project/solution and provide your comma delimited value to it and configure it to update the appropriate values. Don't update the version with the Make VC6 step...

Another option is to continue specifying a period-delimited value to the Make VC6 step, then use a following Replace in File step to update the version values appropriately. Specify the appropriate rc file as the input file and use the following text values for the replacement (ensure you don't have the literal value checkbox set for the step):

- text or regular expression to find values:
(VALUE "FileVersion", ")(([[^\.]])*\.)(([[^\.]])*\.)(([[^\.]])*\.)(([[^\"]]*))(\")
(VALUE "ProductVersion", ")(([[^\.]])*\.)(([[^\.]])*\.)(([[^\.]])*\.)(([[^\"]]*))(\")

- Text or regular expression to replace matches with:
(?1($1)($3), ($5), ($7), ($9)($10))
Reply With Quote