Closed Agazoth closed 1 year ago
I believe this is because PowerShellGet (which is internally used by PowerShell) is incompatible with NuGet v3 feeds, which is what Azure Artifacts uses (as it should - v2 is deprecated).
PowerShellGet is being replaced by Microsoft.PowerShell.PSResourceGet which I believe does support NuGet v3 repositories, but hasn't been released yet (it's in RC). Can owners here confirm if that module will, in fact, make it to PowerShell 7.4? It may even be possible to bring it downlevel to supported 7.x using v3 of PowerShellGet (the compatibility pack).
Install-Package
is part of OneGet (aka PackageManagement) and not part of PS7. PSResourceGet added support for nuget v3.
I see! Guess I'll try this tomorrow: https://devblogs.microsoft.com/powershell/psresourceget-preview-is-now-available/
Updating this issue with the results after upgrade.
PowerShell TeamMicrosoft.PowerShell.PSResourceGet is a continuation of the PowerShellGet 3.0 project. The first preview release of this module under the new name is now available on the PowerShell Gallery. This release contains the module rename, and reintroduces support for Azure Artifacts, GitHub packages,
I can confirm that PSResourceGet works. I just followed the instructions in the link above. Closing this issue
Prerequisites
Steps to reproduce
Follow this guide: https://learn.microsoft.com/en-us/azure/devops/artifacts/tutorials/private-powershell-library?view=azure-devops
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response