Increment file version in VC project.

Delphi has this neat feature that let's you automatically increment the version resource with every build. It simply increments the right most digit...

Any ideas how to do the same in VC?
LVL 4
AssafLavieAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
I've seen several solutions, even though I have to add that I still got back to 'manually' doing this with shell scripts because of my 'bash'-centered build system:

http://www.codeproject.com/tools/autoincbuildnum.asp

http://www.pgh.net/~newcomer/incrementing_build_numbers.htm

http://www3.primushost.com/~ckollars/bldscrpt.html#increment

http://www.bearcanyon.com/tools/ (scroll down to 'BuildNum')
0
 
AlexReserCommented:
0
 
AssafLavieAuthor Commented:
Ah.. very close.
But it doesn't work for my project since the RC file is not in the project's main directory and it's not named after the project either...
it is:
include\script8.rc

0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
IainHereCommented:
Similar to above, but without some of the problems listed on that page:
http://support.microsoft.com/support/kb/articles/Q237/8/70.asp
0
 
AssafLavieAuthor Commented:
Thanks, but his second solution requires alot more work (for each project!). so I don't like it. The first one is almost ok, it's just not smart enough to find the right file...
0
 
jkrCommented:
Just out of curiosity, which one did you end up using?
0
 
AssafLavieAuthor Commented:
I havn't. None of them are as easy to use as Delphi. They all require some sort of messing around with res scripts, h files or MSDEV macros.
I'm also working in a team and the others don't find it acceptable.
But thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.