Skip to main content

Install NuGet Packages in Visual Studio, VS Code, and Rider

  • 3 minutes to read

Visual Studio for Windows

Select DevExpress Local NuGet Feed as a NuGet Package Source

Follow the steps below to use the local NuGet feed (created and configured by the Unified Component Installer) as a package source in Visual Studio for Windows:

  1. Open the Visual Studio NuGet Package Manager for a solution or project. In the Solution Explorer, right-click the solution or project and select Manage NuGet Packages… in the context menu:

    Open Visual Studio NuGet Package Manager

  2. Select the ‘All’ or ‘DevExpress Local’ NuGet feed as a package source:

    Select the DevExpress Local NuGet Feed as a Package Source

  3. Browse DevExpress packages and install. Enable the ‘Include prerelease’ option to include DevExpress packages with hotfix, EAP/CTP, and Beta releases.

    Browse DevExpress packages and Install

Select DevExpress Online NuGet Feed as a NuGet Package Source

Follow the steps below to register/activate the online NuGet feed as a package source to install DevExpress packages:

  1. Invoke the Visual Studio Options dialog (ToolsOptions).
  2. Locate NuGet Package ManagerPackage Sources.
  3. Click ‘+’ to add the online DevExpress feed to the package source:

    • If you use an authorization key, use https://nuget.devexpress.com/api as the package source:

      NuGet authorization Key Package Registration

    • If you use a NuGet Feed URL, specify it as the package source:

      NuGet Feed URL Package Registration

  4. In the Solution Explorer, right-click the solution or project and select Manage NuGet Packages… in the context menu.

    Open Visual Studio NuGet Package Manager

    If you registered the DevExpress NuGet feed with an authorization key, the login form is displayed when you invoke the NuGet Package Manager window for the first time. Enter your credentials as follows:

    Connect to NuGet Login Form

    To remove saved credentials, go to Control PanelUser AccountsCredential ManagerWindows Credentials and delete the following records:

    Remove Windows and NuGet Credentials

  5. Select the ‘All’ or ‘DevExpress’ NuGet feed as a package source.

    NuGet Select DXFeed

  6. Browse DevExpress packages for installation. Enable the ‘Include prerelease’ option to display packages with hotfix, EAP/CTP, and Beta releases.

  7. Click Install to install the package.

    NuGet Add Package

Package Manager Console

You can also use the Package Manager Console (ToolsNuGet Package ManagerPackage Manager Console) to find, install, or update DevExpress NuGet packages. Use the Package source drop-down list to specify the DevExpress NuGet feed as a package source.

NuGet Package Manager Console

The following example shows different console inputs that allow you to manage NuGet packages:

# View all packages whose names contain the keyword "web"
PM> Find-Package web

# Add the DevExpress.Web package and its dependencies to the current project
PM> Install-Package DevExpress.Web

# Remove the DevExpress.Web package and all its dependencies unused by other packages
PM> Uninstall-Package DevExpress.Web -RemoveDependencies 

# Update all packages in the solution
PM> Update-Package

# Update the DevExpress.Web package
PM> Update-Package DevExpress.Web

Refer to the Microsoft documentation for additional information: Package Manager Console.

Visual Studio Code (VS Code) and JetBrains Rider (Windows, macOS, Linux)

Please read the corresponding help topics for information on how to register your personal NuGet feed in VS Code and Rider cross-platform .NET IDEs:

See Also