stop solution build on first compilation\link error - msbuild

前端 未结 3 1345
野的像风
野的像风 2021-01-18 05:17

I\'m compiling a solution with many projects inside using VS2013\'s MSBuild. I want the build to stop if one of the projects fails to compile and that the error code of msbu

3条回答
  •  遥遥无期
    2021-01-18 05:39

    The official documentation says StopOnFirstFailure: If true, when one of the projects fails to build, no more projects will be built. Currently this is not supported when building in parallel (with multiple processors).

    Can you try setting BuildInParallel=false and see if that helps?

    Edit: Found an old blog post that says this might be easy to do if you're building a single .sln with multiple projects http://blogs.msdn.com/b/manishagarwal/archive/2006/05/09/593392.aspx

提交回复
热议问题