dotnet / dotnet/vscode-dotnet-runtime
Update failed.
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
Hey
In shorts, was asked to update vscode by a message in the right corner. pressed "install" and almost right after I got a message stating something went wrong with .NET
**Repro steps:**
1.
**Extension Version:** 1.0.0
**Error Message:** .NET Acquisition Failed: Installation failed: Error: Command failed: powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & 'c:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\6.0.15' -Version 6.0.15 -Runtime dotnet }
dotnet-install: Failed to extract package. Exception: Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roami
ng\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-
ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
At C:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install
scripts\dotnet-install.ps1:822 char:21
+ ... [System.IO.Compression.ZipFileExtensions]::ExtractToFile( ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : IOException
**Error Stack:** Error: .NET Acquisition Failed: Installation failed: Error: Command failed: powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & 'c:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\6.0.15' -Version 6.0.15 -Runtime dotnet }
dotnet-install: Failed to extract package. Exception: Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roami
ng\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-
ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
At C:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install
scripts\dotnet-install.ps1:822 char:21
+ ... [System.IO.Compression.ZipFileExtensions]::ExtractToFile( ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : IOException
at c:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\extension.js:2:4766
Contributor guide
Assessment
This issue has not been assessed yet.