NuGetInstallerStep
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
Constructors
Types
Update mode
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer