dotnet / dotnet/sdk

dotnetup: Support custom dotnet roots

Open
#55,346 1 comment 0 reactions 0 assignees View on GitHub
Area-dotnetup untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

We have an `--install-path` parameter, but I'm not sure it works consistently and if you want to use a different install root, you have to specify it on every command.

I think we should probably support specifying the path for the dotnet root / hive that dotnetup uses by default. That should be a setting that is saved in the config, and synced with the `env` commands.

Then I think the scenario for specifying it on an install command line is really just for untracked installs.

Suggested commands:

- `dotnetup env set --install-path ` - Set the install path dotnetup will use for dotnet
- `dotnet sdk install --untracked ` - Install to the specified path in untracked mode. We'd remove the existing `--install-path` parameter on the install commands

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the dotnetup env commands and SDK install command handling, then inspect how configuration is persisted and how existing --install-path values flow into those paths. Done means a saved default install root is used and synchronized by env commands, while an explicit path is limited to untracked installs as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.