title: VS2010 - How to automatically stop compile on first compile error
body: <p>At work we have a C# solution with over 80 projects. In VS 2008 we use a macro to stop the compile as soon as a project in the solution fails to build (see this question for several options for VS 2005 &amp; VS 2008: <a href="https://stackoverflow.com/questions/134796/how-to-automatically-stop-visual-c-build-at-first-compile-error">Automatically stop Visual C++ 2008 build at first compile error?</a>).</p>
  <p>Is it possible to do the same in VS 2010? What we have found is that in VS 2010 the macros don't work (at least I couldn't get them to work) as it appears that the environment events don't fire in VS 2010.</p>
  <p>The default behaviour is to continue as far as possible and display a list of errors in the error window. I'm happy for it to stop either as soon as an error is encountered (file-level) or as soon as a project fails to build (project-level).</p>
  <p>Answers for VS 2010 only please. If the macros do work then a detailed explanation of how to configure them for VS 2010 would be appreciated.</p>