dotnet / dotnet/sdk

`dotnetup init` complains the install path already contains a .NET installation

Open
#54,909 8 comments 1 reaction 1 assignee Claimed by @nagilson View on GitHub
Area-dotnetup untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I followed the instructions at https://github.com/dotnet/sdk/tree/release/dnup/documentation/general/dotnetup

I installed `dotnetup` user-wide, then ran `dotnetup` command by itself, and then it stopped with this error:

```
Error: The install path 'C:\Users\rikki\AppData\Local\dotnet' already contains a .NET installation that is not tracked
by dotnetup. To avoid conflicts, use a different install path, remove the existing installation first, or use the
--untracked option to install without tracking.
```

I'm honestly unsure what to do about this. I can see the directory it is talking about, was created yesterday afternoon, and it only has 10.0.108 SDK in it. I have 11-preview5 and various other SDKs installed at the user-level.

IIRC, yesterday I spun up at least one agent telling it to use dotnetup to accomplish various tasks, and telling it to follow the instructions linked above and install dotnetup if it needs to.

I am wondering if I got into a state where some "locally-scoped" install of dotnetup created this folder already, and, my more recent "user-scoped" install of dotnetup doesn't recognize the folder. I can go digging and try to find the agent logs in case more info about what it actually did is helpful.

Sorry if this issue isn't that actionable, but, I wanted to call out that I managed to get myself into this state fairly early on in my tire kicking experience. I *think* the right thing to do is to just delete the existing folder and try again.

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.