You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Install the Fleet's .NET SDK Line by Default on Linux #4106
#4103 makes every fleet .NET repo carry a global.jsonsdk block of 10.0.100 with rollForward: latestFeature and allowPrerelease: false. A host holding no release 10.0.x SDK then fails every dotnet command in those repos with "A compatible .NET SDK was not found".
host-setup/linux/install-tools.sh installs only the newest dotnet-sdk-X.Y package the Microsoft feed carries by default (dotnet_install, via dotnet_sdk_latest). Older lines come only with --with-optional. Once the feed carries an 11.0 package, a freshly set-up Linux host gets 11.0 alone and cannot build, format, or test any fleet .NET repo.
Windows is unaffected, since its manifest pins Microsoft.DotNet.SDK.10.
Proposed Fix
Install the SDK line the fleet targets by default on Linux, matching Windows, and keep the newest line as an addition rather than a replacement. Name the targeted line in one place (the host-tools manifest) so a TFM bump moves Linux and Windows together.
Found by the local strict review of the #4103 change.
A related gap, found by the local strict review of the ptr727/LanguageTags change that adopts the #4103sdk block (hub 009d3e5e):
scripts/host_gate.py cannot see the missing line either, so the install gap above passes the gate.
A repository declares dotnet in its own host-tools.json with a minimum floor (LanguageTags uses 10.0). The manifest schema has no ceiling or line key, so a host holding only an 11.x SDK, or a 10.0 preview, passes the floor.
The probe runs dotnet --version in the gate's own working directory, a hub checkout, rather than in the --repo tree. The hub carries no root global.json, so the probe reports the newest installed SDK rather than what the repository's global.json would select.
Verified on a host with 9.0.321, 10.0.404, and 11.0.100 installed: the gate reports dotnet 11.0.100 meets the 10.0 floor, while dotnet --version in the repository reports 10.0.404. Remove the 10.0 SDK and the gate stays green while every dotnet command in the repository fails.
macOS has the same install gap as Linux. A downstream host-tools.jsonsource.macos naming Homebrew's dotnet-sdk cask tracks the newest line rather than the fleet's. LanguageTags now names the 10.0 installer or the dotnet-install script instead.
Suggested: name the targeted SDK line once, as this issue proposes, and have the gate check it. Either run the probe with --repo as the working directory, so global.json selects, or check dotnet --list-sdks for a release SDK on the declared line.
Activity
Select the .NET SDK Line in global.json and Tie the C# Version to the…
Promote Develop: autoMode Defaults First and Manager-Owned Agent Tool…
ptr727 commentedon Nov 12, 2026
A related gap, found by the local strict review of the ptr727/LanguageTags change that adopts the #4103
sdkblock (hub009d3e5e):scripts/host_gate.pycannot see the missing line either, so the install gap above passes the gate.dotnetin its ownhost-tools.jsonwith aminimumfloor (LanguageTags uses10.0). The manifest schema has no ceiling or line key, so a host holding only an 11.x SDK, or a 10.0 preview, passes the floor.dotnet --versionin the gate's own working directory, a hub checkout, rather than in the--repotree. The hub carries no rootglobal.json, so the probe reports the newest installed SDK rather than what the repository'sglobal.jsonwould select.dotnet 11.0.100 meets the 10.0 floor, whiledotnet --versionin the repository reports 10.0.404. Remove the 10.0 SDK and the gate stays green while everydotnetcommand in the repository fails.macOS has the same install gap as Linux. A downstream
host-tools.jsonsource.macosnaming Homebrew'sdotnet-sdkcask tracks the newest line rather than the fleet's. LanguageTags now names the 10.0 installer or the dotnet-install script instead.Suggested: name the targeted SDK line once, as this issue proposes, and have the gate check it. Either run the probe with
--repoas the working directory, soglobal.jsonselects, or checkdotnet --list-sdksfor a release SDK on the declared line.Install the Fleet's .NET SDK Line by Default and Read It From global.…