The Pack action creates a NuGet package based on the specified spec or project file.

On this page:

 


Pack Options

Spec or Project file

The path to a .nuspec or .csproj file to create the package from.

Output Directory

The directory where the package should be created.

Optional Parameters

Configuration

Determines which configuration should be used when building the package from a project (.csproj) file.

Version

Overrides the version number provided in the nuspec file.

Base Path

The base path of the files defined in the nuspec file.

Exclude Pattern

One or more wildcard patterns to exclude when creating a package.

Include sources and symbols

When building a package from a project (.csproj) file, this option causes the source files and symbols to be included in the package.

Prevent default exclusions

Prevents the default exclusion of files and folders beginning with a period (eg .hg/, .hgignore)


  • No labels