Skip to content

dotnetup: Drop STS channel, remove interactive prompt, default no-args to install#53471

Draft
dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
dsplaisted:dotnetup-cli-simplification
Draft

dotnetup: Drop STS channel, remove interactive prompt, default no-args to install#53471
dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
dsplaisted:dotnetup-cli-simplification

Conversation

@dsplaisted
Copy link
Member

Summary

Three related CLI simplifications:

  1. Drop STS channel (dotnetup: drop "sts" channel #53391): Removed the sts channel keyword. The latest channel already provides equivalent behavior.
  2. Remove interactive channel prompt (dotnetup: Remove prompt for channel to install #53282): When no channel is specified, defaults to latest instead of prompting the user to select a channel interactively.
  3. No-args defaults to install (Running dotnetup with no arguments should be the same as running "dotnetup sdk install" #53281): Running dotnet (via dotnetup) with no arguments now runs dotnet sdk install instead of printing help text.

Changes

  • Removed StsChannel constant and all sts handling from ChannelVersionResolver
  • Removed sts from UpdateChannel.Matches()
  • Simplified InstallWalkthrough.ResolveChannel() to use explicit CLI value > global.json > default latest (no interactive prompt)
  • Removed unused _channelVersionResolver field from InstallWalkthrough
  • Changed root command action in Parser.cs to execute SdkInstallCommand instead of printing description
  • Updated tests to verify sts is no longer accepted

Conflicts

Warning

This branch conflicts with PR #53464 (walkthrough UX improvements) due to overlapping changes in ChannelVersionResolver.cs.

Note

This PR was created by Copilot CLI and has not yet been reviewed by a human.

Fixes #53391, fixes #53282, fixes #53281

…lt to sdk install

- Remove the 'sts' channel keyword. Users wanting STS releases should
  use the 'latest' channel instead, which always installs the newest
  available version regardless of support lifecycle.
- Remove the interactive channel selection prompt. When no channel is
  specified on the command line or in global.json, default to 'latest'.
- Change the no-args behavior: running 'dotnetup' with no subcommand
  now runs 'dotnetup sdk install' instead of printing a description.

Fixes dotnet#53391, fixes dotnet#53282, fixes dotnet#53281

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dsplaisted dsplaisted added the dotnetup Work items around the proposed `dotnetup` bootstrapper/toolchain management tool and library label Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnetup Work items around the proposed `dotnetup` bootstrapper/toolchain management tool and library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant