Skip to content
Luca Sgroi edited this page Apr 2, 2017 · 6 revisions

Synopsis

Create a NuGet package targeting the default project .csproj file. Optionally, a .nuspec file can be combined to specify additional metadata.
The project must have been build before packing and the task expects to find the build output in $ArtifactFullPath.

Example: Build and pack a package.

Import-Task Clean, Build, New-Artifact, Pack

# Synopsis: Default task
Task . Clean, Build, New-Artifact, Pack

Properties

  • BuildConfiguration - the build configuration
    Default to Debug
  • CreateSymbolsPackage - it creates a symbols package
    Default to $false
Clone this wiki locally