I\'m building a number of projects via a script, and the occasional use of custom build events causes a great deal of difficulty for the build system. If it is possible, I\
By default when you import Microsoft.Common.targets you get
BeforeBuild;
CoreBuild;
AfterBuild
I think you can maybe just replace it with
CoreBuild
to turn off these pre/post build events. (Not sure if you need to put that in your .proj file before or after the import, or if you need to modify Microsoft.Common.targets to have such an effect. Don't have time to experiment right now...)