dotnet / dotnet/sdk

Handle existing file-based installs in dotnetup

Open
#52,668 2 comments 1 reaction 0 assignees View on GitHub
Area-dotnetup Area-Install
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

We should define what the behavior of dotnetup should be when installing an SDK (or runtime) and there is already a dotnet root on the path that is not managed by dotnetup. This may be a common scenario in some Linux environments (such as codespaces) where a file-based version of dotnet is automatically installed locally.

We could install into the existing folder (which seems to be what currently happens), but we won't be able to handle uninstall or upgrade as well with that root since there will be items that we don't keep track of in the dotnetup manifest.

It may be best initially to not allow installing into existing dotnet root folders, though this might be a poor experience.

We might be able to scan the existing structure of the folder and record those assets in the manifest, and then we wouldn't automatically delete those assets later on.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.