Installing a specific version of a package using NuGet in Visual Studio

I needed to be able to install an old version of a package from NuGet. I couldn’t do it directly via ‘Manage NuGet Packages’, but it turns out it can be done via the Package Manager Console.

  1. Open up the console via View | Other Windows | Package Manager Console
  2. Use the command
    Install-Package [package name] -Version [package version]
    to install the version you want

How to install an older version of package via NuGet?
How to Install a Specific Version of a Package with Nuget
Package Manager Console Powershell Reference

About Jennifer Phillips Campbell

Software Developer and Medieval Historian
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s