Automatically stop the build for a solution when a project has failed to build

2009-10-01 14:15:19 by Kjell-Åke Gafvelin

I am working on a project now which has 155 projects within its solution in Visual Studio 2008. When one of these projects fail to build I have to wait a long time before the build finishes unless I press CTRL + Break.

But now I have found a really nice solution to this here. The solution is to add a macro that handles the OnBuildProjConfigDone event and execute the DTE command “Build.Cancel” when a project has failed to build.