List all versions of a package in the repository

Dec 22, 2010 at 8:07 AM

Let's say I want to add a package.  I seem to have two options:

1. Add via the PackageManager UI.  This seems to only have the option to add the latest version of said package, however there was a discussion to change this: http://nuget.codeplex.com/Thread/View.aspx?ThreadId=230777

2. Add via the Console.  This allows me to add a specific -Version *if* I know which versions are available.  However, I don't know which versions of packages are in the repository.

How can I browse the available package versions and install specific ones?

Thanks!

Dec 22, 2010 at 8:34 AM

OK, I've found the List-Package command.  I was not aware that the default behavior of List-Package only lists the installed packages.

If I run explicitly define the source [List-Package -Source http://go.microsoft.com/fwlink/?LinkID=206669], it works fine. 

 

Dec 22, 2010 at 3:43 PM

you can just simply type: List-Package -Remote, provided that you have selected the NuGet package source in the combo box.

Note that we're considering removing List-Package. So I suggest you use Get-Package instead. List-Package is just an alias for Get-Package.