What NuGet PowerShell command will return a list of all versions of a specific package?
I have tried the following, but it only returns one version of NUnit along with a
As of version 3.x, get-package -ListAvailable -AllVersions
will still work, but will issue the following warning about imminent deprecation:
This Command/Parameter combination has been deprecated and will be removed in the next release. Please consider using the new command that replaces it: 'Find-Package [-Id] -AllVersions'.
In addition, Find-Package supports an -ExactMatch
switch which will avoid the wildcard matching issues that -Filter
has:
Find-Package NUnit -AllVersions -ExactMatch -Source https://api.nuget.org/v3/index.json