19

At work we have a solution with over 90 projects. I want to know if there is a way to stop visual studio from compiling as soon as it encounters an error. Normally it will compile as far as it can and show a list of errors in the error window.

Any ideas?

YOU
  • 120,166
  • 34
  • 186
  • 219
Dylan
  • 1,919
  • 3
  • 27
  • 51
  • Do you want to break compilation as part of an automated build process or just manually? – RobS Apr 21 '10 at 11:52

4 Answers4

13

There is an extension for Visual Studio 2010 - 2017 for this purpose by Einar Egilsson: http://tech.einaregilsson.com/2011/01/06/stop-build-on-first-error-in-visual-studio-2010/

StopOnFirstBuildError is Visual Studio 2010 extension that cancels the rest of a solution build if a single project fails to compile, thus saving you time. Download it in the Visual Studio Gallery.

Sergii Volchkov
  • 1,169
  • 17
  • 23
3

Try VSCommands http://vscommands.com/feature-comparison the free (lite) version includes this feature (among others).

nickbw
  • 463
  • 1
  • 4
  • 12
2

Default Shortcut for C#: CTRL+BREAK

ntziolis
  • 10,091
  • 1
  • 34
  • 50
  • Thanks! I've been trying to find this shortcut. Not sure I can vote the answer up as it doesn't strictly answer the question, but it answered *my* question :-) – Lee Oades Jun 22 '11 at 12:17
-1

You can always hit the break key to manually stop the compile.

Tom Cabanski
  • 7,828
  • 2
  • 22
  • 25