Skip to content

dotnetup: Set up installed dotnet install root as default #52121

@dsplaisted

Description

@dsplaisted

When you install dotnet with dotnetup, by default the version you installed should be the "active" version that you get from the command line when you type dotnet, or that is used by the IDE.

Some history: Some of our initial design is here. We were going to set a registry key that would prevent the admin install from updating the admin path. This was implemented, but we had to back it out for .NET 10 due to MSI upgrade issues.

Now, we think the best option to deal with admin installs may be to set environment variables that tell the admin installed muxer to redirect to the user install. That's captured here. However, we haven't settled on that as a design and even if we did it would probably not be ready for us to use for an initial public preview of dotnetup to gather feedback.

So, our current plans for that preview are:

These actions should be taken (optionally) when dotnetup installs an SDK or runtime, and there should also be commands to do this manually. Straw man: dotnetup setinstallroot user and dotnetup setinstallroot admin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnetupWork items around the proposed `dotnetup` bootstrapper/toolchain management tool and libraryuntriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions