Rider Help

NuGet window

View | Tool Windows | NuGet
Alt+7


This window lets you manage NuGet packages in your solution.

Packages tab

In this tab, you can manage installed packages and explore available packages.

/help/img/rider/2017.1/nuget_window.png

Toolbar Controls

ControlNameDescription
/help/img/rider/2017.1/nuget_restore.png Restore Calls the standard NuGet restore mechanism (which can be slow, especially on.NET Core projects). Alternatively, you can use the 'Light' restore mechanism (Tools | NuGet | NuGet Restore (Light)), which works almost instantaneously, with a very small chance of failing to restore some packages.
/help/img/dotnet/2017.2/ThemedIcon.Refresh.Screen.[Gray].png Refresh Updates window content to reflect any changes made in the code or externally.
/help/img/dotnet/2017.2/ThemedIcon.Settings.Screen.[Gray].png NuGet Settings Opens the Build, Execution, Deployment | NuGet page of Rider settings (Ctrl+Alt+S), where you can configure all settings related to NuGet package management.

Sources tab

In the Sources tab of the NuGet window, Rider lists all NuGet configuration files discovered on your machine. You can add, remove, or edit package sources for the selected config file on the right panel, or click these files to open them in the editor.

If necessary, you can add or remove package sources manually, by editing the packageSources section of a configuration file. For example:

<packageSources> <add key="My online package source" value="https://some.address/"/> <add key="My local package source" value="C:\NuGetPackages\"/> </packageSources>

Use the Reload /help/img/dotnet/2017.2/ThemedIcon.Refresh.Screen.[Gray].png button to re-scan related NuGet configuration files.

Caches tab

NuGet caches all downloaded packages to make them available when there is no Internet connection and to prevent multiple downloads of the same package.

With Rider, you can view locations of NuGet caches and clear selected locations in the Caches tab of the NuGet window. Clearing NuGet caches is safe, it does not affect packages installed in your projects.

Toolbar Controls

ControlNameDescription
/help/img/dotnet/2017.2/ThemedIcon.Refresh.Screen.[Gray].png Recalculate Folder Sizes Use this button to re-scan all cache folders and update their displayed sizes.
/help/img/dotnet/2017.2/ThemedIcon.FolderOpened.Screen.[Gray].png Open Folder Use this button to open selected cache folder in the Explorer/Finder.
/help/img/rider/2017.1/icon_clear_all.png Clear Selected Caches Use this button to clear the contents of the selected cache folder.

Log tab

This tab displays logs of everything related to NuGet package management in Rider.

Toolbar Controls

ControlNameDescription
/help/img/idea/2017.2/icon_softWrap.png Use Soft Wraps Use this button to enable line wrapping for lines exceeding the current width of the output area.
/help/img/rider/2017.1/icon_scrollToEnd.png Scroll to the end Use this button to enable automatic scrolling of the output to the last line so that the most resent messages.
/help/img/rider/2017.1/icon_print.png Print Ctrl+P Use this button to print the log output.
/help/img/rider/2017.1/icon_clear_all.png Clear All Use this button to clear the log output.

Title bar context menu and buttons

You can right-click on the window title bar and use the context menu to configure its viewing mode, associate the window with a different tool window bar, or resize and hide the window.

You can also use the toolbar buttons:

IconShortcutDescription
/help/img/idea/2017.2/icon_viewMode.png Click this button to access a subset of the context menu commands that let you configure window's viewing mode.
/help/img/idea/2017.2/icon_hideSide.png Shift+Escape Use this command to hide the tool window. You can also use it in combination with the Alt key to hides all tool windows attached to the same tool window bar.
Last modified: 11 October 2017