Skip to content

[release/10.0.4xx] Don't let dotnet CLI disable MSBUILDUSESERVER - #54920

Merged
AR-May merged 2 commits into
release/10.0.4xxfrom
backport/pr-54918-to-release/10.0.4xx
Jun 23, 2026
Merged

AR-May merged 2 commits into
release/10.0.4xxfrom
backport/pr-54918-to-release/10.0.4xx

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #54918 to release/10.0.4xx

/cc @AR-May

…UILD_SERVER is unset

Previously the CLI unconditionally wrote MSBUILDUSESERVER to "1" or "0" based
solely on DOTNET_CLI_USE_MSBUILD_SERVER. When that variable was unset (the
default), the host wrote MSBUILDUSESERVER=0, clobbering any value the user had
set directly via MSBUILDUSESERVER and forcing the MSBuild server off.

Now the CLI only sets MSBUILDUSESERVER=1 when DOTNET_CLI_USE_MSBUILD_SERVER opts
in, and otherwise leaves the variable untouched. This lets either variable toggle
the MSBuild server on, so a user-provided MSBUILDUSESERVER=1 is honored.

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added the backport PR that has been backported to a servicing branch label Jun 22, 2026
@AR-May
AR-May merged commit cae250c into release/10.0.4xx Jun 23, 2026
28 checks passed
@AR-May
AR-May deleted the backport/pr-54918-to-release/10.0.4xx branch June 23, 2026 05:46
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport PR that has been backported to a servicing branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants