Install NuGet packages with Visual Studio
TFS 2018
Using Azure Artifacts and Visual Studio, you can set up your development machine to access and install packages from your feeds and public registries such as NuGet.org.
Get source URL
To set up Visual Studio to access your feed as a package source, we must first get the Source URL:
Select Build and Release, and then select Packages.
Select your feed from the dropdown menu.
Select Connect to feed, and then copy your Source URL.
Set up Visual Studio
Open Visual Studio, and then select Tools > Options.
Select NuGet Package Manager, and then select Package Sources.
Enter your feed's Name and the Source URL you copied in the previous step, and then select the green (+) sign to add a new package source.
If you enabled upstream sources in your feed, clear the nuget.org checkbox.
Select OK when you're done.
Install packages from your feed
Now that you set up Visual Studio and added a new package source pointing to your feed, you can now search and install packages right from Visual Studio package manager.
Open Visual Studio, and then right-click on your project in the Solution Explorer, then select Manage NuGet Packages....
Select Browse, and then select your feed from the Package source dropdown menu.
Use the search bar to look for packages in your feed.
Note
If you enabled upstream sources, any packages that haven't been saved to your feed (by using them at least once) won't appear in the search result.
Install packages from NuGet.org
Navigate to NuGet.org and search for the package you want to install.
Select Package Manager, and then copy the Install-Package command.
Open Visual Studio, and then select Tools > NuGet Package Manager > Package Manager Console to open the package manager console.
Paste the install command into the Package Manager Console and then press Enter.