Nu Get Installer Step
A NuGet installer step to run nuget restore command
Example. Installs all NuGet packages referenced in the Visual Studio solution file "my_solution.sln" including the pre-release packages. Uses the default NuGet tool version installed on the TeamCity server.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nuGetInstaller {
toolPath = "%teamcity.tool.NuGet.CommandLine.DEFAULT%"
projects = "my_solution.sln"
updatePackages = updateParams {
includePreRelease = true
}
}
Content copied to clipboard }
}
Example. Installs all NuGet packages referenced in the Visual Studio solution file "my_solution.sln". Uses a custom path to the NuGet executable.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nuGetInstaller {
toolPath = "<path to NuGet executable on agent>"
projects = "my_solution.sln"
}
Content copied to clipboard }
}
See also
Properties
Optional collection of build step execution conditions
Build step execution mode
Select NuGet.exe restore or NuGet.exe install command to restore packages
Uses the NuGet update command to update all packages under solution
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Validates this object and reports found errors to the provided consumer