TeamCity 8.0 Help

NuGet Dependency Trigger

The NuGet Dependency Trigger allows starting a new build if a NuGet packages update is detected in the NuGet repository.

Requirements and limitations

For a TeamCity server running on Windows, .NET 4.0 is required.

For a TeamCity server running on Linux, the NuGet dependency trigger will reportedly work with the following limitations:

  • NuGet feed version 1.0 is used, so case-sensitivity issues might occur

  • the current trigger implementation on Linux might increase the server load

  • authentication issues might occur

Configuring NuGet Dependency Trigger

  1. Select the NuGet version to use from the NuGet.exe drop-down list (if you have NuGet), or specify a custom path to NuGet.exe;

  2. Specify the NuGet package source, if it is different from nuget.org;

  3. Specify the credentials to access NuGet feed if required

  4. Enter the package Id to check for updates.

  5. Optionally, you can specify package version range to check for. If not specified, TeamCity will check for latest version.

You can also opt to trigger build if pre-release package version is detected by selecting corresponding check box. Note that this is only supported for NuGet version 1.8 or newer.

Last modified: 20 April 2023