Exercise - Promote a package

Completed

Important

Have access to an existing Azure DevOps project and the connected package feed from the previous demo Create a package feed.

Steps to demonstrate the views on package feeds in Azure Artifacts

  1. Go to dev.azure.com and open your team project.

  2. Open Artifacts and select the feed PartsUnlimited. Screenshot of PartsUnlimited feed from Artifacts.

  3. Go to Artifacts and click Feed Settings. Screenshot of PartsUnlimited feed settings from Artifacts.

  4. Open the Views tab. By default, there will be three views. Local: includes all packages in the feed and all cached from upstream sources. Prerelease and Release. In the Default view column is a check behind Local. It's the default view that will always be used.

Steps to use the release view instead

  1. Open Visual Studio and open NuGet Package Manager.
  2. Click the settings wheel and check the source address for the PartsUnlimited feed. If you want to use a different view than the local view, you need to include that in the Source URL of your feed by adding @Release.
  3. Add @Release to the source URL ../PartsUnlimited@Release/nuget/.. And click Update.
  4. Refresh the Browse tab. You'll see there are No packages found in the Release feed. Before any packages appear, you need to promote them.

Steps to promote packages to views

  1. Go back to your feed in Azure Artifacts.
  2. Click on the created NuGet Package PartsUnlimited.Security.
  3. Click Promote.
  4. Select the feed you want to use, in this case, PartsUnlimited@Release, and Promote.
  5. Go back to the Overview. If we look again at our package in the feed, you'll notice a Release tag is now associated with this package.
  6. Go back to Visual Studio, NuGet Package Manager.
  7. Refresh the Browse tab. You'll see that your version is promoted to this view.
  8. Select PartsUnlimited.Security and click Update and OK. The latest version of this package is now used.