Groups > Borland > Borland C plus plus builder command line tools > Re: How to auto-increment the build number by command line build with MSBUILD?




How to auto-increment the build number by command line
build with MSBUILD?

How to auto-increment the build number by command line build with MSBUILD?
Fri, 18 Jan 2008 01:21:45 +080
I create a simple build machine by batch file. I turn on the
"Auto-increment 
build nymber" option of the project and build it on command line with 
MSBUILD. The build number doesn't have any change.
But, when I build this project on IDE, the build number automatically 
increases. Please help me to solve this problem. Thanks. 

Post Reply
Re: How to auto-increment the build number by command line build with MSBUILD?
Wed, 02 Apr 2008 12:56:18 -070
In article <478f8e2e@newsgroups.borland.com>,
 "AlexLin" <lepalex@pchome.com.tw> wrote:

> I create a simple build machine by batch file. I turn on the
"Auto-increment 
> build nymber" option of the project and build it on command line with

> MSBUILD. The build number doesn't have any change.
> But, when I build this project on IDE, the build number automatically 
> increases. Please help me to solve this problem. Thanks. 

   It wouldn't be compatible with the IDE setting, but you could create 
a pre-build action to increment a counter that is used in generating a 
.rc file. You could also do so with an MSBuild targets file. here are 
some examples of things that can be done with targets files.

<http://msbuildtasks.tigris.org/>
-- 
David Dean (CodeGear)
Post Reply
about | contact