Skip to content

Install-Package failed because a temp file already exists  #544

@anonhostpi

Description

@anonhostpi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions