Skip to content

CLI command for installing SDK based on global.json #49146

Open
@HalvorNygaard

Description

@HalvorNygaard

Is your feature request related to a problem? Please describe.

Sometimes when opening up a solution for the first time, the requirements of the global.json for a .NET SDK Version does not match with any SDK version on you machine.

  • First the analyzers start showing errors.
  • Then you need to figure out what version you can use that will satisfy the global.json
  • Then you need to locate the the right package to download, depending on your OS could be through various
    package managers.
  • Then you have to install it

Would be great if there was a util for this built into the dotnet cli.

Describe the solution you'd like

To have a command in the dotnet cli that directly downloaded and installed the right .NET SDK that satisfied the requirements of the global.json with a command like "dotnet sdk install" or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions