Nu Get Pack Step
A NuGet pack step to run nuget pack command
Example. Creates NuGet packages according to provided .nuspec files. Uses the default NuGet tool version installed on the TeamCity server. Publishes created packages as TeamCity artifacts.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nuGetPack {
toolPath = "%teamcity.tool.NuGet.CommandLine.DEFAULT%"
paths = """
main-packages/packages.nuspec
supplemental/packages.nuspec
""".trimIndent()
outputDir = "target"
cleanOutputDir = true
publishPackages = true
}
Content copied to clipboard }
}
See also
Properties
Clean output directory
Optional collection of build step execution conditions
Exclude files when creating a package.
Build step execution mode
Include sources and symbols.
Use the project file (if exists, i.e. .csproj or .vbproj) for every matched .nuspec file.
A semicolon or a newline-separated list of package creation properties.
Publish created packages to build artifacts
Create tool package.
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Use project/.nuspec directory.
Validates this object and reports found errors to the provided consumer