dotnet / dotnet/vscode-dotnet-runtime
Failed to download .NET 8.0.2~x64:
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug.
I have two extensions installed that trigger this bug; ilspy-vscode and MSBuild project tools. The errors for ilspy-vscode happen every time VS Code loads. The errors for MSBuild project tools happen any time a folder with a C# project is loaded (might happen for other MSBuild project types).
The .NET Install Tool seems to download the dotnet.exe to a folder (according to a log) but the file is not found.
In the Output [.NET Runtime] window the following appears (the MSBuild project tools extension was disabled at the time):
```
icsharpcode.ilspy-vscode requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.2~x64 ..... Done!
.NET 8.0.2~x64 executable path: c:\Users\djohnston\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.2~x64\dotnet.exe
Error
Failed to download .NET 8.0.2~x64:
Validation of .dotnet installation for version 8.0.2~x64 failed: Expected executable does not exist at "c:\Users\djohnston\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.2~x64\dotnet.exe"
Error
Failed to download .NET 8.0:
.NET Acquisition Failed: Validation of .dotnet installation for version 8.0.2~x64 failed: Expected executable does not exist at "c:\Users\djohnston\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.2~x64\dotnet.exe"
```
### Please attach log file(s) here if you have any.
[DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1709145712572.txt](https://github.com/dotnet/vscode-dotnet-runtime/files/14438704/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1709145712572.txt)
### Reproduction Steps
1. Open VS Code with no files or folder loaded.
2. Install the ilspy-vscode extension.
3. This should immediately trigger the .NET Install Tool to load and for the error to be triggered.
### Expected Behavior
The dotnet.exe file should be downloaded.
### Exceptions & Errors (if any)
```
icsharpcode.ilspy-vscode requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.2~x64 .... Done!
.NET 8.0.2~x64 executable path: c:\Users\djohnston\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.2~x64\dotnet.exe
Error
Failed to download .NET 8.0.2~x64:
Validation of .dotnet installation for version 8.0.2~x64 failed: Expected executable does not exist at "c:\Users\djohnston\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.2~x64\dotnet.exe"
Error
Failed to download .NET 8.0:
.NET Acquisition Failed: Validation of .dotnet installation for version 8.0.2~x64 failed: Expected executable does not exist at "c:\Users\djohnston\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\8.0.2~x64\dotnet.exe"
```
### .NET Install Tool Version
2.0.2
### Your operating system? Please provide more detail, such as the version and or distro above.
Windows 11 Pro 23H2
### VS Code Version
1.87.0 (user setup)
Contributor guide
Assessment
This issue has not been assessed yet.