{rant} First, I would like to say that it is NOT DUPLICATE . I asked this question before, but it closed as a duplicate when it is not. This question is SPECIFIC for VS 2010 and answers to the so-called duplicate work in VS 2008, but not on VS 2010 (at least not for me or for anyone I know). Therefore, before you close something as a duplicate, how about you carefully read the question and try to answer yourself and see if it really works. Apologies for the pomp, but there is no obvious way to contact the SO police, who closed the problem or resumed it. {/} Loud words
At work, we have a C # solution with over 80 projects. In VS 2008, we use a macro to stop compilation as soon as a project in the solution is created (see this question for several options for VS 2005 and VS 2008: Automatically stop Visual C ++ 2008 to build a compilation error first? ).
Is it possible to do the same in VS 2010? We found that macros do not work in VS 2010 (at least I couldn’t get them to work), because it seems that environmental events do not fire in VS 2010.
The default behavior is to continue as far as possible and display a list of errors in the error window. I am glad that it will stop as soon as an error occurs (file level), or as soon as the project is not created (project level).
Responses to VS 2010 only please. If macros really work, then a detailed explanation of how to configure them for VS 2010 will be appreciated.
Thank.
Ben Robbins Jun 15 '10 at 1:12 2010-06-15 01:12
source share