NuGet Publish
Last modified: 20 April 2023The NuGet Publish build runner is intended to publish (push
) your NuGet packages to a given feed (custom or default).
If you're using TeamCity as a NuGet server, you don't need to add this build step. However, the output of the NuGet Pack build step should be a build artifact: specify the path to it in the General Settings of your build configuration.
note
NuGet Publish is only supported on build agents running Windows OS.
This page describes the NuGet Publish runner options:
Option | Description |
---|---|
NuGet.exe | Select a NuGet version to use from the drop-down list (if you have installed NuGet beforehand), or specify a custom path to
|
Packages | Specify a newline-separated list of NuGet package files (.nupkg) to publish to the NuGet feed. List packages individually or use wildcards. |
Only upload packages but do not publish them to feed | Select the checkbox if you want to upload your package to the TeamCity server but keep it invisible in the feed. Works for NuGet versions 1.5 and older. |
API key | Provide your API key. |
Package Source | Specify the destination NuGet packages feed URL to push packages to, by default it is |
Thanks for your feedback!