dotnet / dotnet/vscode-dotnet-runtime

ms-dotnettools.csharp excessive "install" process messages

Open
#2,426 1 comment 0 reactions 0 assignees View on GitHub
resolved-upcoming-release untriaged
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

Upon every start, you'll see:

```
ms-dotnettools.csharp: Trying to install .NET 9.0.9~x64~aspnetcore but it already exists. No downloads or changes were made.
ms-dotnettools.csharp: Trying to install .NET 9.0.9~x64~aspnetcore but it already exists. No downloads or changes were made.
ms-dotnettools.csdevkit: Trying to install .NET 9.0.9~x64~aspnetcore but it already exists. No downloads or changes were made.
```

For some reason, it appears to install it twice for ms-dotnettools.csharp.

Upon reboot, you'll see:

```
ms-dotnettools.csharp requested to download the .NET ASP.NET Runtime.
Downloading .NET version(s) 9.0.9~x64~aspnetcore .... Done!
.NET 9.0.9~x64~aspnetcore executable path: /home//.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.9~x64~aspnetcore/dotnet
```
... as well as the messaging above.

It would be nice if there was a check first to avoid excessive downloading and it could also ease the startup of vscode in general if it didn't have to do install attempts, or unecessary downloads of the installer.

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

ms-dotnettools.csharp requested to download the .NET ASP.NET Runtime.
Downloading .NET version(s) 9.0.9~x64~aspnetcore .... Done!
.NET 9.0.9~x64~aspnetcore executable path: /home//.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.9~x64~aspnetcore/dotnet

ms-dotnettools.csharp: Trying to install .NET 9.0.9~x64~aspnetcore but it already exists. No downloads or changes were made.
ms-dotnettools.csdevkit: Trying to install .NET 9.0.9~x64~aspnetcore but it already exists. No downloads or changes were made.

### Reproduction Steps

Open VSCode with a dependency that also depends on this extension.

Ex:
* c# dev kit
* c#
* etc

### Expected Behavior

Clearly somewhere an inspection of the latest version is being performed, otherwise it wouldn't indicate it's downloading a specific version, nor that it's going to install said specific version.

It's also visibly clear in the logs that the extension is aware of the install path and could easily verify it's existence, thus skipping the entire process that will result in no changes anyway.

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

2.3.7

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

Linux

### VS Code Version

Version: 1.103.2 Commit: 6f17636121051a53c88d3e605c491d22af2ba755 Date: 2025-08-20T16:45:34.255Z Electron: 37.2.3 ElectronBuildId: 12035395 Chromium: 138.0.7204.100 Node.js: 22.17.0 V8: 13.8.500258-electron.0 OS: Linux x64 6.12.10-76061203-generic

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.