Installing Microsoft.Extensions.DependencyInjection.Abstractions from NuGet seems to self-extract the same file twice, causing errors
Environments:
- PowerShell 7.4.0 on .NET 8 on Win 11
- Windows PowerShell on Win 11
To reproduce:
Install-Package `
-Name "Microsoft.Extensions.DependencyInjection.Abstractions" `
-RequiredVersion 3.1.0 `
-Scope CurrentUser
Result:
Install-Package : Package 'Microsoft.Extensions.DependencyInjection.Abstractions' failed to be installed
because: The file 'C:\Users<username>\AppData\Local\Temp\4114qgpj\packageIcon.png' already exists.