Skip to content

Install the Fleet's .NET SDK Line by Default on Linux #4106

Closed

Description

@ptr727

Problem

#4103 makes every fleet .NET repo carry a global.json sdk 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.

Activity

  1. added
    enhancement
    on Nov 12, 2026
  2. ptr727 commented on Nov 12, 2026

    @ptr727
    OwnerAuthor

    A related gap, found by the local strict review of the ptr727/LanguageTags change that adopts the #4103 sdk 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.json source.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.

  3. added a commit that references this issue on Nov 13, 2026
    0bf39bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions