Skip to main content
A newer version of this page is available. .

Setup Visual Studio's NuGet Package Manager

  • 3 minutes to read

Register DevExpress NuGet Feed

You need to register the DevExpress NuGet feed as a package source to install DevExpress packages through NuGet.

  1. You can access DevExpress NuGet packages with NuGet Feed URL or authorization key. Refer to the following topic for more information: Obtain Your NuGet Feed Credentials.
  2. To register the DevExpress NuGet feed as a package source in Visual Studio, invoke the Visual Studio Options dialog (ToolsOptions). In this dialog, locate the Package Manager item and add the DevExpress Feed to the package source as shown below.

    • 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

Install Packages Using NuGet Package Manager

After you register the NuGet Feed, use the NuGet Package Manager to install DevExpress NuGet packages:

  1. In the Solution Explorer, right-click the project and select Manage NuGet Packages in the invoked drop-down menu.

    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

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

    Remove Windows and NuGet Credentials

  2. Select the DevExpress NuGet feed as a package source.

    NuGet Select DXFeed

  3. Locate the package in the list of available packages or use the embedded search.

    Note

    You should enable the Include prerelease option to display specific DevExpress packages that are available as a CTP version.

  4. Click Install next to the package you want to install.

    NuGet Add Package

Use Package Manager Console

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

NuGet Package Manager Console

The sample below illustrates different console inputs which 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 more information: Package Manager Console.