JetBrains Rider 2018.2 Help

NuGet

File | Settings | Build, Execution, Deployment | NuGet for Windows and Linux
JetBrains Rider | Preferences | Build, Execution, Deployment | NuGet for macOS
Ctrl+Alt+S icons general settings svg


On this page, you can configure Rider's NuGet package manager.

Item

Description

Search

Include prerelease

If this option is enabled, Rider will search and install pre-release versions of packages.

Include unlisted

If this option is enabled, Rider will search and install versions of packages that are at unlisted on the server (for example, at NuGet website). You may want to use this option to see outdated versions of packages.

Restore

Allow Rider to restore missing packages

This option defines global NuGet package restore policy. You may want to disable NuGet package restore if you have poor Internet connection, or if you work with a large solution with complex dependencies, where restoring packages with default settings can actually break compilation.

Automatically restore missing packages when necessary

This option affects different scenarios, where Rider automatically restores NuGet packages — e.g. when opening or building projects. By the way, automatic NuGet restore before building can be toggled on the Build, Execution, Deployment | Toolset and Build settings page.
Note that automatic NuGet package restore will be disabled if the Allow Rider to restore missing packages option is disabled.

.NET Core restore engine

By default, JetBrains Rider uses its own implementation of the .NET Core restore engine. You can enable the MSBuild engine instead, which you may need if you use Paket dependency manager in your projects. Even more, this option will be automatically set to MSBuild if JetBrains Rider detects Paket configs in your solution.
Note that the MSBuild support is experimental, and credential provider will not work with this option, i.e. if you use private NuGet feeds and configured your credentials on the Sources tab of the NuGet window, MSBuild engine will not be able to use these credentials.

Package Management

Default package management format

Use this selector to choose which NuGet package management format will be used:
  • packages.config — a legacy format that uses the packages.config file to store NuGet package information.

  • PackageReference — a newer format introduced with Visual Studio 2017 that stores NuGet package information in the project file.

Preferences in the Install and Update and in Uninstall sections work exactly the same as in Visual Studio package manager:

Visual Studio package manager options
Last modified: 28 November 2018