dotnet / dotnet/sdk

dotnetup: How to handle runtime installations if we override DOTNET_ROOT

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

Description

If you use dotnetup to install the .NET SDK and then later run an app (or the app tries to run at starltup), you may get an error like this:

Image

This is because dotnetup has set the DOTNET_ROOT path to your user-local dotnet folder which doesn't have the runtime that the app needs installed. The installer the error message links to is probably already installed, and even if it's not installing it wouldn't help.

We should improve the experience here.

Eventually the host (or whatever is showing the message) should probably detect that DOTNET_ROOT is set to a user location and offer to install the correct runtime via dotnetup.

Shorter-term solutions could include detecting DOTNET_ROOT and updating the error message, as well as installing existing admin runtimes into the user-local DOTNET_ROOT when dotnetup is first used.

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.