Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 encounters 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!

like image 421
Micah Avatar asked Aug 26 '10 15:08

Micah


2 Answers

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!

like image 143
user13309289 Avatar answered Oct 22 '22 06:10

user13309289


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.

like image 23
JaredPar Avatar answered Oct 22 '22 06:10

JaredPar