Mid DevOps

Create a feed under Azure Artifacts → New Feed.?

In your pipeline or locally, publish the .nupkg file using:

dotnet nuget push "MyLibrary.1.0.0.nupkg" --source "MyFeed"

  • -api-key az

or use the Azure Pipelines task:

  • task: NuGetCommand@2

inputs:

command: 'push'

Follow:

packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'

publishVstsFeed: 'MyProject/MyFeed'

More from Microsoft Azure Tutorial

All questions for this course