NuGet.org upstream source

Azure DevOps Services | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018 - TFS 2017

Enabling upstream sources on your feed allow you to publish and consume packages from your feed and public registries. Adding the nuget.org upstream allows you to consume NuGet packages from the public registry.

Add a new upstream source

  1. Select Artifacts, and then select your feed.

  2. Select the gear icon button in the top right of the page to open Feed settings.

  3. Select the Upstream sources tab.

    Screenshot showing how to access feed settings.

  4. Select Add upstream source.

    Screenshot showing the add a new upstream source button.

  5. Select Public source, and then fill out the required fields.

    Screenshot showing how to add a new upstream source.

  6. Select Add when you are done.

Update nuget.config

  1. Select Artifacts, and then select your feed.

  2. Select Connect to feed, and then choose NuGet.exe.

    Screenshot showing how to connect to NuGet feeds.

  3. Copy the XML snippet in the Project Setup section.

  4. Create a new file named nuget.config in the root of your project.

  5. Paste the XML snippet in your config file.

View saved packages

You can view the packages you saved in your feed by selecting the appropriate Source filter.

Screenshot showing how to filter upstream sources.

Screenshot showing how to filter upstream sources - TFS.