dotnet / dotnet/msbuild

MSBuild Task needs explicit control whether to build remaining projects on error

Open
#3,942 0 comments 0 reactions 0 assignees View on GitHub
Area: Tasks Feature Request triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

The current behavior of the MSBuild task in non-parallel .sln build is to not build remaining projects after a project failed to build.

However if you specify `/m` then it seems that MSBuild will build all projects even if some of them failed to build.

It would be nice to introduce a task parameter such as `BuildRemainingProjectsOnError` that defaults to false to preserve the default behavior, but that would allow to still build the remaining projects in single-node builds even if previous project(s) have failed.

This is useful when you are gathering .csc information for example and don't care so much about the build results. You still want to collect all Csc invocations even in case of errors.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.