Hot Licks
Hot Licks

Reputation: 47709

How to find a package in NuGet?

Yes, for the simple stuff it's simple, but suppose I want to install the 2.1 version of Web API Web Host instead of the 2.2 version? Sometimes you can laboriously page through hundreds of packages to find it, other times no dice.

Upvotes: 0

Views: 687

Answers (2)

user2063329
user2063329

Reputation: 451

You could use PowerShell.

PS SQLSERVER:\> Find-PACKAGE -NAME Microsoft.AspNet.WebApi.WebHost 

Name Version Source Summary
---- ------- ------ -------
Microsoft.AspNet.WebApi.Web... 5.2.3 nuget.org This package contains everything you need to host ASP.NET Web API on IIS.

Upvotes: 0

Steven V
Steven V

Reputation: 16595

I'm guessing you've got prereleases turned on. Try changing the menu above the main listing from "Include Prereleases" to "Stable Only".

screenshot

Worse case you can always open the Package Console Manager and type:

Install-Package Microsoft.AspNet.WebApi.WebHost -Version 5.1.1

which will install the package using the 5.1.1 version of the package.

Upvotes: 2

Related Questions