开发者

How do I force Visual Studio to stop building when it hits the first error? [duplicate]

This question already has answers here: VS2010 - How to automatically stop compile on first compile error (3 answers) Closed 2 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜