ms.topic | ms.service | ms.author | author | ms.date |
---|---|---|---|---|
include |
azure-devops-artifacts |
rabououn |
ramiMSFT |
05/15/2024 |
[!INCLUDE get a NuGet URL]
-
In Visual Studio, select Tools > Options.
-
Expand the NuGet Package Manager section, and then select Package Sources.
-
Enter the feed's Name value and the Source URL, and then select the green plus sign (+) to add a source.
-
If you enabled upstream sources in your feed, clear the nuget.org checkbox.
-
Select OK when you're done.
:::image type="content" source="../../media/vs-addsource.png" alt-text="A screenshot that shows selections for setting up Visual Studio in Windows.":::
-
Create a personal access token.
-
In Visual Studio, on the menu bar, select Preferences.
-
Select NuGet, and then select Sources.
-
Select Add and enter your feed's name, the source URL, a username (any string), and your personal access token.
-
Select OK to save your source.
-
If you enabled upstream sources in your feed, clear the nuget.org checkbox.
-
Select OK when you're done.
:::image type="content" source="../../media/vs-mac-settings.png" alt-text="A screenshot that shows selections for setting up Visual Studio in macOS.":::
-
In Visual Studio, right-click your project, and then select Manage NuGet Packages.
-
Select Browse, and then select your feed from the Package source dropdown menu.
:::image type="content" source="../../media/select-pkg-src.png" alt-text="Screenshot that shows selection of a package source in Visual Studio.":::
-
Use the search bar to search for packages from your feed.