Download old version of package with NuGet – Dev

The best answers to the question “Download old version of package with NuGet” in the category Dev.


Is there a way to download a previous version of a package with NuGet, not the latest one?


Browse to its page in the package index, eg.

Then follow the install instructions given:

Install-Package Newtonsoft.Json -Version 4.0.5

Alternatively to download the .nupkg file, follow the ‘Download’ link eg.

Obsolete: install my Chrome extension Nutake which inserts a download link.


Bring up the Package Manager Console in Visual Studio – it’s in Tools / NuGet Package Manager / Package Manager Console. Then run the Install-Package command:

Install-Package Common.Logging -Version 1.2.0

See the command reference for details.

In order to list versions of a package you can use the Get-Package command with the remote argument and a filter:

Get-Package -ListAvailable -Filter Common.Logging -AllVersions

By pressing tab after the version option in the Install-Package command, you get a list of the latest available versions.


In NuGet 3.x (Visual Studio 2015) you can just select the version from the UI

NuGet 3 package manager UI


Another option is to change the version number in the packages.config file. This will cause NuGet to download the dlls for that version the next time you build.