I am working on a fairly large C++ application using a VS2015 solution comprising of multiple projects. I've created a python script to automatically generate version.h to include GIT information to be passed to a legacy app I have no control over as a #define (I currently cannot do this any other way).
The problem I'm having is that the pre-build event takes place but VS does not include the new file in the build until I press build a second time.
Research so far has suggested this may be because Visual Studio is building from it's copy of the solution in memory as opposed to what's stored on my disk.
I'd welcome any help or suggestions of better solution as I feel this is a little hacky