• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

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?
0
AssafLavie
Asked:
AssafLavie
1 Solution
 
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
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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:
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
 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now