I have a similar question as given in Automatically stop Visual C++ 2008 build at first compile error but specifically for building from the command line with command-lines such as devenv.exe someproject.sln /build Release /project flubber
. I want the build to stop upon the first error. Will the macro solution work from the command line too, or will it only work from the IDE? My guess is that it only works from the IDE.
If that is the case, then is there a way to do this cleanly such the project I build continues to build identically with what the devenv.exe
command-line interface would do (even if it means using MSBuild
)?
Other pages I scanned, but that seemingly did not answer the question: