views:

184

answers:

1

Maybe I'm remembering Borland's compiler? But I seem to recall having the ability to set "stop compiling if X errors are encountered" - or some such.

VS2008 already stops on 100 errors. But I'm already fixing the first couple, and hitting save, which causes the compiler to warn me about saving while compiling - which its being retarded to even create this situation.

Either: STOP compiling on ~10 errors, Or: STOP compiling when I hit save (during a compile).

I have found no setting which allows either of the above, but perhaps someone here knows if and where they may be?

+1  A: 

Hi, see this link http://stackoverflow.com/questions/134796/how-to-automatically-stop-visual-c-build-at-first-compile-error

IordanTanev
Do you know how to actually get that macro to execute?
Mordachai
http://stackoverflow.com/questions/841725/run-visual-studio-2008-macro-on-pre-build-event
IordanTanev
Hi you can run it by going to the macro ide Tools->Macros->Macro Ide... (Alt + F11) that will open the macro ide in the solution explorer find EnviromentEvents class and add the procedure after the region of predifend events
IordanTanev
This links to two possible answers in that thread. The first only fires after a single project is done compiling, the other, more likely solution, is supposed to run what seems like continually looking for an error in the build output window. It is that second solution I am trying to get to run. I tried placing it as you indicate, Iordan, but it didn't seem to do anything?
Mordachai