Skip to content

dotnet tool install doesn't support package@version syntaxΒ #52706

@baronfel

Description

@baronfel

dotnet tool install dotnet-aspnet-codegenerator@9 today causes the tool installer to look for a package with the literal package Id dotnet-aspnet-codegenerator@9 instead of looking for the most recent stable 9.x version of the dotnet-aspnet-codegenerator package. This is inconsistent with the direction we've been taking other package+version-related commands.

We should ensure that this command (and dotnet tool update) support the package[@version] syntax, and that if that syntax is used the --version flag becomes a validation error.

Metadata

Metadata

Labels

Area-Toolscli-uxIssues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)untriagedRequest triage from a team member

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions