If you’ve decided to write your own python build script for existing Visual Studio projects, then two questions would probably come up at first.
- What utility/commands are available for actually building *.sln/*. vcxproj files?
- How will you specify the appropriate version for your *.rc version resource file?
Solution for #1. You can download the MSBuild tools for free from the Microsoft download website, and it provides the solution you need. First, download the MS Build tools 2013(or 2015) depending on your Visual Studio project versions.
- Microsoft Build Tools 2015 https://www.microsoft.com/en-us/download/details.aspx?id=48159
- Microsoft Build Tools 2013 https://www.microsoft.com/en-us/download/details.aspx?id=40760
Solution for #2. You can easily modify/set the version number string on your *.rc resource file by using python regex. Here is the example.