dotnet / dotnet/vscode-dotnet-runtime

[NETE2ESDK] Empty runtime folders are still present after uninstalling the runtimes

Open
#2,267 2 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
bug good first issue help wanted P2
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

Empty runtime folders are still present after uninstalling the runtimes

### Please attach log file(s) here if you have any.

The log file location should be copied to your clipboard if you came from VS Code.

[Bug2267.zip](https://github.com/user-attachments/files/20098947/Bug2267.zip)

### Reproduction Steps

1. Run the 'Sample: Acquire .NET runtime' command and enter the runtime version or Run the `Sample: Concurrently acquire all 2.X .NET Core runtimes' command.
2. Run the ‘.NET Install Tool: Uninstall .NET’ command to uninstall the runtime. In output, it show a message of uninstallation success.
3. Go to the runtime installation path 'c:\Users\{ USERNAME }\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.sample-extension\.dotnet\' and observe

### Expected Behavior

The runtime is uninstalled succeed and the related files are deleted.

### Exceptions & Errors (if any)

The runtime folder is still present even it is empty.

![Image](https://github.com/user-attachments/assets/25127c1d-6715-4290-813b-75446f388f8b)

### .NET Install Tool Version

v2.3.4

### Your operating system? Please provide more detail, such as the version and or distro above.

N/A

### VS Code Version

1.99.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.