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
A list of records, each field of an item stored as a parameter of its own: parameter f of the n-th item, counting from 1, is stored as name.n.f. A script fills the list in the block of the parameter, see RecordList.
A record, each field stored as a parameter of its own: parameter f of the record is stored as name.f. A script fills the record in the block of the parameter; a record without parameters stores nothing.
Validates this object and reports found errors to the provided consumer