NuGet - Given a type name or a DLL, how can I find the NuGet package?

1.8k views Asked by At

I find blog posts about implementing stuff like OWIN integration or IAuthenticationFilter in Web API 2, but I can never work out what NuGet package(s) I need.

I seem to randomly Google stuff and look through GitHub projects, other blogs hoping for some clue.

Considering everything is going NuGet, is there a better way? A massive index of Package > Assembly > Types?

2

There are 2 answers

1
Marko M. On

There is exactly what you want and it's called reverse package search but only for ASP.NET 5 packages - at least for now. You can make your search here : Reverse Package Search

Example query: Search for System.String

1
Luke Puplett On

I've interestingly just found that VS 2015 suggests packages by type name.

See, Add Missing NuGet Packages in ASP.NET 5 in http://blogs.msdn.com/b/webdev/archive/2015/04/29/new-asp-net-features-and-fixes-in-visual-studio-2015-rc.aspx

Maybe the answer is to wait for VS vNext, but surely there's an open API this system is using and maybe a way to search via NuGet.org?