问题
How I can automatically increment the file version in my C/C++ project when I build it? Currently I have to modify the resources manually before I do the build. Is there any script or utility to automate this?
回答1:
There is a discussion on the MSDN Website of different approaches to the problem.
Microsoft have also provided KB237870 that explains a (fairly convoluted) method to automate this.
回答2:
Can I automatically increment the file build version when using Visual Studio?
Is that what you're looking for?
来源:https://stackoverflow.com/questions/990308/automatically-increment-the-version-number-in-a-projects-rc-file