Setup Visual Studio's NuGet Package Manager
- 3 minutes to read
- Register DevExpress NuGet Feed
- Install Packages Using NuGet Package Manager
- Use Package Manager Console
Register DevExpress NuGet Feed
You need to register the DevExpress NuGet feed as a package source to install DevExpress packages through NuGet.
- 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.
To register the DevExpress NuGet feed as a package source in Visual Studio, invoke the Visual Studio Options dialog (Tools → Options). 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/apias the package source.
If you use a NuGet Feed URL, specify it as the package source.
Install Packages Using NuGet Package Manager
After you register the NuGet Feed, use the NuGet Package Manager to install DevExpress NuGet packages:
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:
- User name:
- Password: your authorization key
If you want to remove saved credentials, go to Control Panel → User Accounts → Credential Manager → Windows Credentials and delete the following records:
- User name:
Select the DevExpress NuGet feed as a package source.
Locate the package in the list of available packages or use the embedded search.
You should enable the Include prerelease option to display specific DevExpress packages that are available as a CTP version.
Click Install next to the package you want to install.
Use Package Manager Console
You can also use the Package Manager console (Tools → NuGet Package Manager → Package 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.
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.