dotnet / dotnet/vscode-dotnet-runtime

[NETE2ESDK][Linux] Dotnet Host is Not Uninstalled When Uninstalling All SDKs

Open
#2,189 4 comments 0 reactions 0 assignees View on GitHub
enhancement P4
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

After uninstalling .NET SDK in Vscode, running command ‘sudo apt --installed list | grep "dotnet" ’ in terminal displays incorrectly.

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

[logs.zip](https://github.com/user-attachments/files/19360572/logs.zip)

### Reproduction Steps

1. On Ubuntu24.04/Ubuntu22.04, run the sample command ‘Install .NET SDK Globally via .NET Install Tool (Former Runtime Extension)‘, enter the version 8.0.114, Hit enter.
2. After the .NET SDK is installed successfully, try to run '.NET Install Tool: Uninstall .NET' to uninstall the SDK
3. Check dotnet --info; sudo apt --installed list | grep "dotnet" and the Uninstall .NET list to ensure uninstall successfully

### Expected Behavior

8.0.114 SDK will not be shown in any of the command: dotnet --info; sudo apt --installed list | grep "dotnet" and the Uninstall .NET list

### Exceptions & Errors (if any)

8.0.114 SDK still present in command: sudo apt --installed list | grep "dotnet"

![Image](https://github.com/user-attachments/assets/0ee42099-0883-4f40-9daf-7f8e490d29e0)

‘dotnet --info’ also displays incorrectly.

![Image](https://github.com/user-attachments/assets/b3d9cb51-eb40-4608-995a-394f48e06fef)

### .NET Install Tool Version

v2.2.9

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

Linux

### VS Code Version

1.98.2

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.