Skip to content

Some Nuget packages fail to extract #1659

@mthierman

Description

@mthierman

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

I have added Nuget.org as a repository following these instructions: https://learn.microsoft.com/en-us/powershell/gallery/powershellget/supported-repositories?view=powershellget-3.x#nugetorg

Several packages seem to install fine but https://www.nuget.org/packages/Microsoft.Web.WebView2 is failing to extract.

This package installs correctly using nuget cli or Install-Package.

Expected behavior

Package to install correctly without warning

Actual behavior

Package does not install at all, and prints an error about failing to extract the .nupkg

Error details

Install-PSResource: Error occured while extracting .nupkg: 'Could not find a part of the path 'C:\Users\username\AppData\Local\Temp\4307a896-a361-42bc-8a7c-98e33c32141b\microsoft.web.webview2\1.0.2535.41\build\'.'
Install-PSResource: Package(s) 'Microsoft.Web.WebView2' could not be installed from registered repositories 'NuGetGallery, PSGallery'.

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions