Skip to content

dotnetup: Accept 'aspnet' as alias for 'aspnetcore' runtime type#53472

Draft
dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
dsplaisted:dotnetup-aspnet-alias
Draft

dotnetup: Accept 'aspnet' as alias for 'aspnetcore' runtime type#53472
dsplaisted wants to merge 1 commit intodotnet:release/dnupfrom
dsplaisted:dotnetup-aspnet-alias

Conversation

@dsplaisted
Copy link
Member

Summary

Adds aspnet as an accepted alias for the aspnetcore runtime type, so users can type either:

dotnet runtime install aspnet@10.0
dotnet runtime install aspnetcore@10.0

The alias is accepted in parsing but not shown in help/error messages to keep them clean.

Changes

  • Added aspnetInstallComponent.ASPNETCore mapping in RuntimeInstallCommand.s_runtimeTypeMap
  • Created separate s_canonicalRuntimeTypeNames array for display in error messages (avoids showing both aspnet and aspnetcore)
  • Refactored GetValidRuntimeTypes() to iterate canonical names
  • Added test cases for the alias

Conflicts

Warning

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

Note

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

Fixes #53283

Define DotnetupVersionPrefix and DotnetupPreReleaseVersionLabel in a
shared src/Installer/Directory.Build.props so both projects inherit
the same version. This prevents version drift between the CLI tool
and the library.

Fixes dotnet#52795

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