Hi,
I have to build some C source files using Visual Studio (currently using VS2008) but there is a pre-build script that has to be run so the files are able to compile.
So this pre-build script has to modify the source files and here comes the problem: how can I use a pre-build script that modifies the src files.
If I modify the original files and the build failed the post build won't run so I won't be able to recover the files so I think the best way is to copy the files and then modify the copies and tell the compiler to compile the copies but I don't know if I can tell VS to compile some other files that are not included in the project instead of this that are in it.
So what is the best way to run such a pre-build script?