Skip to main content

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

  • 6 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/v3/index.json 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.

JetBrains Rider (macOS, Windows, Linux)

The following steps explain how to register the DevExpress NuGet feed on macOS, and open and configure the DevExpress-powered project/example in the JetBrains Rider IDE (these steps will be similar for JetBrains Rider IDE for other operating systems):

  1. Register the DevExpress NuGet feed. Use your personal DevExpress NuGet authorization key. Use the command below to add DevExpress as a NuGet package source:

    dotnet nuget add source https://nuget.devexpress.com/api/v3/index.json -n DXFeed -u DevExpress -p {your-feed-authorization-key} --store-password-in-clear-text
    

    Note

    Non-Windows operating systems do not support password encryption. To store credentials as plain text on these systems, add the --store-password-in-clear-text option to the command.

    Storing passwords in clear text is strongly discouraged. For more information on managing credentials securely, refer to the following Microsoft topic: Consuming packages from authenticated feeds - Security best practices for managing credentials.

  2. Open the DevExpress-powered project.

    Open the Project in JetBrains Rider

  3. Clone the project from GitHub (for example, Spreadsheet for ASP.NET Core - How to use AJAX requests to update document content):

    Clone the DevExpress GitHub Project in JetBrains Rider

  4. JetBrains Rider automatically resolves DevExpress NuGet packages in the project. You can add DevExpress NuGet packages (if needed). The following screenshot shows how to add the DevExpress.Drawing.Skia NuGet package to the ASP.NET Core project:

    Add DevExpress NuGet Package in JetBrains Rider

  5. Specify the target framework:

    Check the Target Framework in JetBrains Rider

Please read the following help topic for additional information on how to register your personal NuGet feed: Consume NuGet packages in JetBrains Rider IDE.

Note

Currently, the rich design-time functionality for DevExpress UI components (designers, project wizards, templates, etc.) that comes with the DevExpress Unified Component Installer is only available in the Visual Studio IDE for Windows. In other IDEs, standard design-time support for UI platforms may not be available (for example, support for the WinForms designer may be absent or limited). To create projects with DevExpress libraries in other IDEs, you can use DevExpress CLI templates/extensions:

Visual Studio Code (VS Code)

The following steps explain how to register the DevExpress NuGet feed and add DevExpress NuGet packages to your project in VS Code:

  1. Register the DevExpress NuGet feed. Use your personal DevExpress NuGet authorization key. Use the command below to add DevExpress as a NuGet package source:

    dotnet nuget add source https://nuget.devexpress.com/api/v3/index.json -n DXFeed -u DevExpress -p {your-feed-authorization-key}
    

    Non-Windows operating systems do not support password encryption. To store credentials as plain text on these systems, add the --store-password-in-clear-text option to the command.

    Note

    Storing passwords in clear text is strongly discouraged. For more information on managing credentials securely, refer to the following Microsoft topic: Consuming packages from authenticated feeds - Security best practices for managing credentials.

  2. Add DevExpress NuGet packages to your project. You can use the VS Code NuGet Package Manager extension or use the dotnet CLI to add/install packages:

    Add DevExpress NuGet Packages to the Project

    # Add DevExpress packages to your project (dotnet CLI)
    dotnet add package DevExpress.AspNetCore.Dashboard -v 24.1.4
    

Read the following help topic for information on how to use C# Dev Kit to add/install NuGet packages in VS Code: NuGet in Visual Studio Code.

Note

Currently, the rich design-time functionality for DevExpress UI components (designers, project wizards, templates, etc.) that comes with the DevExpress Unified Component Installer is only available in the Visual Studio IDE for Windows. In other IDEs, standard design-time support for UI platforms may not be available (for example, support for the WinForms designer may be absent or limited). To create projects with DevExpress libraries in other IDEs, you can use DevExpress CLI templates/extensions:

See Also