I just started working with FinalBuilder so do not be so hard ;-).
I tried to update the version info in all rc-files of our solution via the "Build VS.Net Solution" action. Because no rc-file was changed, I switched to the "FileSet define" and "Text Replace" action.
My search string is: (VERSION\s)(\d+)([.|,])(\d+)([.|,])(\d+)([.|,])(\d+)
My replace string is: $1$2$3$4$5$6$7%NumberBuild%
Example: Version 8.0.1.0 -> Version 8.0.1
If I check the rc-file, the part $7%NumberBuild% is missing. If I insert any character between "$7" and "%NumberBuild%" it is replaced correct.
Regards
Christian
(Can anyone move it to the FinalBuilder section? Thanks)
That solution assumes that you can use a comma before the build number. If you’re not sure if it’s a comma or a period, you can expressly make them all into commas by using this syntax:
i understand the problem. Is there an easier way to change the version number in all assembly.info and rc-files? I changed the values for the version on the tab Version Info and Assembly Info but nothing happens. It there a possiblity to insert placeholders into the version numbers?
Sorry, for all the questions, but I am a littlebit low on time and the program isnot that intuitiv for a beginner.
Versioning with the Build VS.NET Solution action is something that we’d like to improve for the next version.
You should be able to set the versions fine on the Version Info tab. If you want to set the build version to a variable, then you can put some script into the BeforeAction event, like this:
Action.BuildVersion = BuildNumber;
(omit the semicolon if you’re using VBScript.)
… if you’ve tried this, and it’s still not setting the version numbers properly, then it’s probably a bug. Could you please send us the FinalBuilder project and log files, to support at finalbuilder dot com? Thanks.