I have a Visual Studio 2008 project that creates a file called " Game-Release.exe ".
This has been configured in Project Properties -> C / C ++ - > Linker -> General :
$(OutDir)\$(ProjectName)-Release.exe
I would like to take this a little further by adding an incremental build number so that I have something that says:
Game-Release-Build-1002.exe
The number at the end must be an incrementing integer. I will keep the exe assembly in subversion, so I think I would find it useful (although not necessary).
There may be a built-in macro in Visual Studio that can handle this. Quite possibly, I thought that I could have a text file with the build number in it and read the compiler, use and increase the number in the file every time the project was built. My goal, however, is to make the process as automatic as possible. What is the best way to do this?
If you express an opinion, please indicate the code that we can all provide. Thnx.
source share