Automatically stop batch builds of the Visual C ++ 2008 command line at the first compilation error using devenv.exe?

I have a similar question asked in Automatically stop building Visual C ++ 2008 on the first compilation error , but specifically for building from the command line with commands such as devenv.exe someproject.sln /build Release /project flubber. I want the assembly to stop on the first error. Will the macro solution work from the command line, or will it work only from the IDE? I assume that it only works from the IDE.

If this is the case, is there a way to do it cleanly, so that the project that I built continues to build identically with what it will do with the command line interface devenv.exe(even if it means using MSBuild)?

Other pages that I looked through but didn't seem to answer the question:

+3
source share
1 answer

, , , IDE , . , devenv.exe MSBuild, , MSBuild . , . StopOnFirstFailure MSBuild, , .

. *.sln * *.proj RunEachTargetSeparately false. , Visual ++ 2008, - VCBuild , 100% MSBuild, Visual Studio 2010.

+2

Source: https://habr.com/ru/post/1780794/


All Articles