I want to store a set of integers that get auto incremented at build time:
int MajorVersion = 0;
int MinorVersion = 1;
int Revision = 92;
When I compile, it would auto-increment Revision
. When I build the setup project, it would increment MinorVersion
(I'm OK with doing this manually). MajorVersion
would only be incremented manually.
Then I could display a version number in menu Help/About to the user as:
Version: 0.1.92
How can this be achieved?