How do I force Visual Studio to stop building when it hits the first error? [duplicate]
UPDATE
Exact duplicate of VS2010 - How to automatically stop compile on first compile error
Basically when it's compiling I want it to immediately stop when it enc开发者_开发问答ounters the first error. What it currently odes is tries to build all the rest of the projects which in turn fail. Anyone know how to do this?
Thanks!
Check my answer here
I know this might be bit late, but if it helps anyone then they should install the extension VSColorOutput
Then go to Tools => Options => VSColorOutput => General => Set Stop Build on First Error to true.
Hope this helps, happy Debugging!
I don't think you will be able to get the exact behavior you're looking for. Visual Studio will either try to build all or one project but not short circuit after the first error.
You can get close to the behavior you want by building only a single project at a time. Right click on the project you want to build and select "Build". It will not attempt to build any other projects even if it compiles successfully.
Here is a solution without having to install anything. As its building press ctl+break and it will halt the build.
精彩评论