Re: visual studio 2008-how to increment build number automatically
?
Shubha Ramani wrote:
Is there a way to automatically increment the FILEVERSION of an *.exe or
*.dll (in an rc file) with every build for Visual Studio 2008 ? If not, do
you have a sample VB script to get it done ?
Do you really want that? Think about it, if you build, it finds syntax
errors, then need to build again, and a good number will go to waste.
What you need is to set up a special machine that will build the
official build (after checking the source automatically from the source
control system), and there you will need to run a shell script (we used
to have a Perl script for that) as the custom pre-build step (or some
such), which will read the current number, increment it and write it
into the .h file that your resource script would include. And if the
build is successful, the system would label the source tree with the
number (or with a string that would include that number)...
And if you don't have a team of developers and a source control system,
why do you really care about the build number?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask