ReSharper Help

Finding, Exploring, and Installing NuGet Packages

With ReSharper, you can search for types or namespaces in the NuGet package gallery, check the matched packages, analyze their contents, and install the desired packages - all without leaving Visual Studio.

In this topic:

Finding NuGet packages

The easiest way to start the search is to use the corresponding context action that becomes available for unresolved namespaces:

Finding NuGet package by namespace with ReSharper

... and types:

Finding NuGet packages by type with ReSharper

In any case, ReSharper will open the NuGet Browser window, where you will see all packages that contain the desired type or namespace.

You can also start the search in the NuGet Browser window, which you can open from the main menu: ReSharper | Windows | NuGet Browser. Depending on what you are looking for, click either Type or Namespace on the window's toolbar, and then enter the type or namespace in the search field.

If necessary, you can refine the search by using the toolbar buttons:

  • Case Sensitive - By default, the search is case-insensitive. Click this button to take the case of the search query into account.
  • Prerelease - By default, the search results only include release versions of packages. Click this button to add pre-release versions to the search results - all pre-release packages will be marked with the special icon: errStripeYellow
  • Any version - By default, the search results only include latest versions of the matched packages. Click this button to display all available versions - all versions but latest will be marked with the corresponding warnings.

Exploring a NuGet package

To learn more about any found package, click More toolbar__expand_all next to the package. ReSharper will display description and other details of the package. If necessary, you can click to the Package id link to open the package page on the NuGet website. To hide the package details, click Less toolbar__collapse_all.

You can also study the hierarchy of namespaces and types in any found package. To do so, click Browse icon_browse next to the package.

Installing a NuGet package

As soon as you find the desired package, you can install it by clicking Install icon_install next to it. If you have started the search in the NuGet Browser window, you will have to select the project where the package should be installed. If your search originates from a context action in the editor, you can just click Install in the confirmation dialog to install the package in the current project. However, you can always select any other project by clicking Select another project.

See Also

Last modified: 21 September 2015