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
Offer the Next .NET Major Under the Windows Installer's -Optional Set #4186
A repository may now select a .NET line ahead of the fleet default in its own global.json, per CODESTYLE.md "Toolchain Versions". On Linux, install-tools.sh already installs the newest line the feed carries beside the default. On Windows, install-tools.ps1 -Optional covers only the two majors below $DOTNET_MAJOR. A host building a leading repository therefore installs the next major with winget directly.
This was built and then withdrawn from the pull request that introduced the repository-owned line, because each review pass found a new defect in it. What that attempt learned, so the next one starts from it:
Adding Microsoft.DotNet.SDK.$($DOTNET_MAJOR + 1) to the optional set needs a skip for an id winget does not carry yet. Skip only on winget's not-found exit code, never on any failed winget show, since a network failure reads the same way there.
The optional loop re-runs winget install on optional ids already present. Skip an id winget already lists, through a helper that answers installed, absent, or unknown. Warn on and fail the tool for unknown, rather than installing against an unanswered state.
A failed optional install currently returns out of the loop. With the next major ordered first, that stops the older lines from being tried and skips the change summary. Record the failure and continue instead.
The untracked-SDK note in Add-ToolNote names any newer SDK. It should leave out a line winget lists under an optional-set id, and read the installed major through Get-VersionKey.
-Optional installs the optional set only beside an install or upgrade of the managed SDK, never on a host where that SDK is already current. The README and the dotnet-codestyle skill should say so.
develop now also has $OPTIONAL_TOOLS (the op row), which -Optional selects too. Keep the two meanings apart.
Activity