Stop MSBuild processing immediately on compilation errors
问题 I have written a batch file, which when executed builds a visual studio solution. The solution comprises of few C# projects. I am using MSBuild utility for this. How can i stop the build from proceeding further when there are compilation errors in any of the projects? Further how can i get the error messages and display them on command prompt? 回答1: There's no support for stop on first failure when building a visual studio solution. You can workaround this by taking the following steps: Set