How: Programmatically update version and release code.
Posted: Fri Feb 10, 2006 2:19 am
Playing with the program I find a problem for which I did not find the documentation yet. MAybe a hint is helpfull.
I need to update the version information and generate a new release code of a product programmatically, WITHOUT building it.
Reason: We use full version control over all of our files. Rule is: EVERY build must be reproducable. That includes having all ressources in version control. Our build script runs a preaparation phase for every build. During this, the sources are prepared for a new build, then checked in, and then labelled in source control. I need to update the internal build number during this step, and get a new release code assigned. SADLY the .mpr file is not a XML format (hey, that MAY be an idea - I have no clue what you use as programming language, but there propably is a good xml serializer for that), so I can not use XML to just update fields. I also miss methods for this in the automation API.
I need to update the version information and generate a new release code of a product programmatically, WITHOUT building it.
Reason: We use full version control over all of our files. Rule is: EVERY build must be reproducable. That includes having all ressources in version control. Our build script runs a preaparation phase for every build. During this, the sources are prepared for a new build, then checked in, and then labelled in source control. I need to update the internal build number during this step, and get a new release code assigned. SADLY the .mpr file is not a XML format (hey, that MAY be an idea - I have no clue what you use as programming language, but there propably is a good xml serializer for that), so I can not use XML to just update fields. I also miss methods for this in the automation API.