As the title says I cannot use the Find-Package command with the nuget v3 url:
https://api.nuget.org/v3/index.json
If I run the command:
Find-Package nuget.versioning -Source https://api.nuget.org/v3/index.json
I get an error that no match was found. Changing the command to:
Find-Package nuget.versioning -Source https://www.nuget.org/api/v2
Works fine.
Do I need to upgrade some software to get this to work? I'm running Powershell version 5 so I'm not sure what steps I need to take to fix this.
With Powershell 5.1, it fails as you described. But with PowerShell Core 7, it works correctly:
Note that you can check for your PowerShell version through the
PSVersionTablevariable:On PowerShell Core 7, you will see that it uses version 3 of the NuGet package provider, thus it supports protocol v3.