Skip to content

Pack‐Nuspec

Luca Sgroi edited this page Mar 26, 2017 · 3 revisions

Synopsis

Create a NuGet package targeting a .nuspec file.
Not that the version of the package should be defined by Pask either via version.txt or inline PowerShell.

Example: The default project Infrastructure has a nuspec file Infrastructure.nuspec.

<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
  <metadata>
    <id>$id$</id>
    <version>$version$</version>
    <title>$id$</title>
    <authors>Luca Sgroi</authors>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <summary>Infrastructure code.</summary>
    <description>Infrastructure utilities.</description>
  </metadata>
  <files>
    <file src="readme.txt" />
  </files>
</package>

Properties

  • BuildConfiguration - the build configuration
    Default to Debug
  • CreateSymbolsPackage - it creates a symbols package
    Default to $false
  • IncludePdb - it includes PDB (Program Database) files in the package
    Default to $false
Clone this wiki locally