Skip to content

[.NET10 RC2] Unset other DOTNET_ROOT env vars when launching apphosts - #2585

Merged
jjonescz merged 1 commit into
dotnet:release/10.0.1xx-rc2from
jjonescz:dotnet-root-arch
Sep 25, 2025
Merged

jjonescz merged 1 commit into
dotnet:release/10.0.1xx-rc2from
jjonescz:dotnet-root-arch

Conversation

@jjonescz

@jjonescz jjonescz commented Sep 24, 2025 •

Copy link
Copy Markdown
Member

Should fix problems when DOTNET_ROOT_<arch> or DOTNET_ROOT(x86) var is set from the outside and the apphost would use those instead of the DOTNET_ROOT var we set.

For example, in NuGet.Client CI: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1156878&view=logs&j=f105d2c8-32d0-5cff-b114-87cf330929dd&t=f92a2093-7359-5d67-e113-8e3692a1dec4&l=94441

Follow up on dotnet/roslyn#80026.

Validated manually (built roslyn+sdk locally, used that sdk with a repro case).

@jjonescz
jjonescz marked this pull request as ready for review September 24, 2025 15:05
Comment thread src/roslyn/src/Compilers/Core/MSBuildTask/ManagedToolTask.cs
@jjonescz
jjonescz merged commit 2738447 into dotnet:release/10.0.1xx-rc2 Sep 25, 2025
10 checks passed
@jjonescz
jjonescz deleted the dotnet-root-arch branch September 25, 2025 07:45
@jjonescz

Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.1xx: https://github.com/dotnet/dotnet/actions/runs/18004016280

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants