Publishing a NuGet package to Artifacts
NuGet packages are ZIP files containing the .nupkg
extension, where the common code is packaged and shared with others. In this recipe, we will explore how to create a sample NuGet package and set up a build pipeline that will continuously deliver new versions of the package.
Note
An introduction to NuGet can be found at https://docs.microsoft.com/en-us/nuget/what-is-nuget.
Azure Artifacts introduces the concept of feeds. A feed is a container for your package; you can consume and publish packages to and from a feed. Azure Artifacts allows you to create multiple feeds; however, planning the name and number of feeds for your collection beforehand will help improve the management of permissions for your feeds and NuGet packages.
Another key aspect of Azure Artifacts is known as upstream sources. Upstream sources allow a single feed to store the packages you produce along with the packages that you consume from the remote feed. Each dependent remote package...