Skip to content

MT mode should still use MSBuild Server even when node reuse is disabled #14157

Description

@AR-May

When a build is multithreaded, MSBuild should always run through MSBuild Server, because the server process is the only way we enable Server GC, and Server GC is essential for MT mode  (all project work runs on threads inside one process, so Workstation GC becomes a major throughput/allocation bottleneck). Today, /nodeReuse:false  (or  MSBUILDDISABLENODEREUSE=1 ) unconditionally disables the server. Instead of treating "no node reuse" as "no server",  -mt  should still launch the server and simply shut it down at the end of the build rather than keeping it persistent for reuse.

Activity

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

Metadata

Metadata

Assignees

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