In the Publish your packages section of Publish to NuGet feeds, the screenshot for the Designer shows the NuGet push task in the wrong position. The screenshot shows to put the NuGet push command immediately after the NuGet pack command. However, if the user is using MSBuild to create the NuGet packages, there won't be a NuGet pack and the task needs to be placed after the Copy files to: $(build.artifactstagingdirectory) task, since the NuGet package won't be in the staging folder until after that task. The documentation does not make that clear.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @saluce65 , thanks for the feedback. I think the point of the screenshot here is to mostly just show the NuGet Push task configuration itself more than the correct sequence of tasks. You do raise a valid point though that if your NuGet package is already created and lives in a directory, it must be copied over to the artifact staging directory before publishing (or you can set your Path to NuGet package(s) to publish variable to where it was created). Did you find it confusing as it is? The only thing I could see changing is to add a blurb below stating what you've mentioned.
@elbatk we should, at some point, invest in some more comprehensive documentation for creating and publishing NuGet packages, esp. in .NET Core workflows. We could probably work with @anangaur from the NuGet team.
I've created a work item for this and I'll reach out to Anand, thanks Alex!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing out as @elbatk has placed the work is the team backlog.