Επεξεργασία

Κοινή χρήση μέσω


Search for packages in upstream sources

Azure DevOps Services | Azure DevOps Server 2022

Using upstream sources enable developers to consume packages from different feeds and public registries. This tutorial will walk you through how to enable upstream sources in your feed and search for packages in upstreams.

Enable upstream sources

  1. Navigate to your project, and then select Artifacts.

  2. Select the gear icon gear icon to navigate to your Feed Settings.

  3. Select Upstream Sources.

  4. Select Add Upstream.

  5. Select Public source, and then select the Public source. (Example NuGet gallery (https://api.nuget.org/v3/index.json))

  6. Select Add when you're done.

    A screenshot showing how to add the NuGet upstream.

Search upstream sources

  1. Navigate to your project, and then select Artifacts.

  2. Select your feed from the dropdown menu.

  3. Select Search Upstream Sources at the top right of your screen.

    A screenshot showing the search upstream sources button.

  4. Select the Package type and type your Package Name. (The package name is case sensitive and must be an exact match).

  5. Select Search when you're done.

    A screenshot showing how to search for a package in upstream sources.

  6. A list of package versions will be displayed as follows:

    A screenshot showing package versions from upstream.

Note

Searching for packages in upstream sources from your feed is only supported in Azure DevOps services.

Save packages

  1. To save a package, select the ellipsis button and then select Save to feed.

    A screenshot showing how to save a package from upstream source.

  2. Select Save to save the package to your feed.

    A screenshot showing the save confirmation message.

  3. The saved versions will have the In this feed tag.

    A screenshot showing the downloaded versions.

Note

Saving package versions to your feed from the search upstreams result list is only supported for NuGet, Npm, and Universal Packages.