How to stop C# compile on first error in VS 2010 (VS 2008 macros don't work)!
问题 New information : This question has been re-asked here and has been correctly answered by Noah Richards with a solution that works in VS 2010. At work we have a C# solution with over 80 projects. Is it possible in VS 2010 to automatically stop compilation as soon as an error is encountered rather than the default behaviour which 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