Q: release pipeline to push nuGet packages using vsts failing I am trying to create a build and release pipeline for creating a nuget package using Azure Devops.
I am new to this.
I have the following steps,
Build Steps
The details of each step as below,
Nuget Restore
Build solution
Nuget Pack
Publish Artifact
I have added a release pipeline as below,
Release pipeline
with detail as below,
Nuget Push
I am getting an error as below when trying to push the nuget package as below.
Error
I tried different variations of the "path to package" option in nuget push, but with no joy,
Any help is really appreciated.

A: The package location that worked for me in a release pipeline:
$(System.ArtifactsDirectory)/**/*.nupkg;!$(System.ArtifactsDirectory)/**/*.symbols.nupkg


A: You should specify .nupkg in your Publish Artifact step (Path to publish field). Like this:
$(Build.ArtifactStagingDirectory)\*.nupkg;!$(Build.ArtifactStagingDirectory)\*.symbols.nupkg


A: I have the same Build pipeline as you, that publishs an artifact. For the Release pipeline, here are my steps:


*

*extract the *.zip to a subdirectory of build's artifact staging directory (by default, the Agent downloads all the artifacts generated by the build)

*install recent nuget

*run nuget push from this directory (just adjust the path)



