dotnetup: Drop STS channel, remove interactive prompt, default no-args to install#53471
Draft
dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
Draft
dotnetup: Drop STS channel, remove interactive prompt, default no-args to install#53471dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three related CLI simplifications:
stschannel keyword. Thelatestchannel already provides equivalent behavior.latestinstead of prompting the user to select a channel interactively.dotnet(via dotnetup) with no arguments now runsdotnet sdk installinstead of printing help text.Changes
StsChannelconstant and allstshandling fromChannelVersionResolverstsfromUpdateChannel.Matches()InstallWalkthrough.ResolveChannel()to use explicit CLI value > global.json > defaultlatest(no interactive prompt)_channelVersionResolverfield fromInstallWalkthroughParser.csto executeSdkInstallCommandinstead of printing descriptionstsis no longer acceptedConflicts
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