PDA

View Full Version : increment build number


sri
04-10-2007, 07:13 AM
I have automated the build i want to increment the build number by itself upto a particular date.

we change the build number in rc and cpp files.

Can you tell how can i automate it?

kinook
04-10-2007, 08:28 AM
It's unclear what you mean by increment a build number up to a particular date.

As far as incrementing a build number, see 'Update Global Macro' section of the Script.bld sample.
http://www.visualbuild.com/Manual/scriptsample.htm

To format the date in a field value, use a script expression and the vbld_FormatDateEx script function.
http://www.visualbuild.com/Manual/scriptexpressions.htm
http://www.visualbuild.com/Manual/sysscriptdatetime.htm

You can use the Replace in File action to update text in a .cpp/.rc file.
http://www.visualbuild.com/Manual/filereplaceaction.htm
http://www.visualbuild.com/Manual/filessample.htm

You can also use the Make VS.NET or Make VC6 action to update a version or property field in the VERSIONINFO resource of a .rc file.
http://www.visualbuild.com/Manual/vsnetprojectsolutiontab.htm