Fix missing .NET 11 framework build issue - #20277
Conversation
✅ No release notes required |
9988f28 to
e4134e4
Compare
|
🔍 Tooling Safety Check — Affects-Build-Infra, Affects-Bootstrap
|
e4134e4 to
0b18dd8
Compare
|
Trimmed this way down. |
|
My issue was building the solution in VS |
|
But are you launching VS via the launch script? |
…ipts Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: a88a01ae-1ee0-43a9-9735-308800e7c62d
0b18dd8 to
f2de978
Compare
|
Ah, no. Just as a regular from Start menu. |
Description
Fixes .NET 11 SDK/runtime resolution during local and CI builds. Bootstrap apphosts (
fsc,fsi,testhost, etc.) resolve the runtime viaDOTNET_ROOT/multi-level lookup rather thanPATH, so when a machine also has other .NET installations, the apphost could pick up an unexpected or missing runtime instead of the repo-local.dotnetinstall, causing build/test failures on machines where the .NET 11 framework isn't globally installed.This change:
.dotnethost inFSharpBuild.Directory.Build.propsso the compiler host and bootstrap runtime come from the same install.DOTNET_ROOTandDOTNET_MULTILEVEL_LOOKUP=0ineng/Build.ps1,eng/build-utils.ps1,eng/build.sh, andeng/test-determinism.ps1right afterInitializeDotNetCli, so every apphost spawned during bootstrap/build/test resolves the correct SDK/runtime instead of falling back to a machine-wide lookup.Fixes # (issue, if applicable)
Checklist