Skip to content

Enable MSBuild multi-threaded mode (-mt) when building with VS MSBuild #9989

Open

Description

@ViktorHofer

MSBuild's multi-threaded mode (-mt) is now on by default for both local and CI builds (#9411, #9988). It's still turned off when building with VS MSBuild (msbuild.exe):

  • eng/common/tools.ps1 (and the src/arcade/eng/common copy that flows to repos): MSBuild doesn't pass -mt when the build tool is msbuild.exe. This affects standalone repos whose global.json sets tools.vs (e.g. fsharp, msbuild, roslyn, vstest, wpf).
  • repo-projects/Directory.Build.targets: the VMR orchestrator passes -mt 0 to repos that build with VS MSBuild on Windows (ForceDotNetMSBuildEngine=false).

This is blocked until Visual Studio on the Windows CI images is updated to 18.12. After that, remove both carve-outs so -mt also applies to VS MSBuild.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions