Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The version of the package.  This value will overwrite the version number provided in the nuspec file.  This can be very useful for allocating version numbers based off build variables (for example $Build.Version$). [-Version]

Command Line Version

Select the version of the NuGet command line that is installed on the agent. Some other settings and options may be unavailable depending which the command line version is selected.

Using

The Using drop down is populated with any property collector whose namespace matches the pattern defined by the NuGet Pack action. The pattern for this action is ^NuGet.*

...

Alternatively, you can select the Custom option from the Using drop down list and specify a path in the resulting input field that will be displayed. Please read Why it's a good idea to use a property collector before using this option.


Build

Build

...

project

Determines if the project should be built before building the package. [-Build]

...

Prevent inclusion of empty directories when building the package. [-ExcludeEmptyDirectories]


Settings

Configuration File

A specific NuGet configuration file to use. Leave blank to use %AppData%\NuGet\nuget.config. [-ConfigFile]

Version Suffix

A suffix to append to the internally generated version number. This is typically used for appending build or other pre-release identifiers. [-Suffix].

...

Specify the minimum version of the NuGet client that can install the created package. [-MinClientVersion]

...

The package contains sources and symbols

Determines if a package containing sources and symbols should be created. When specified creates a regular NuGet package file and the corresponding symbols packageSpecifies that the package contains sources and symbols. [-Symbols]

Symbol Package Format

This field is visible only if the 'The package contains sources and symbols

...

' checkbox is selected.

Select the symbol package format. Defaults to legacy symbol package format 'symbols.nupkg'. [-SymbolPackageFormat]

...

Prepare the package output name without the version. [-OutputFileNamesWithoutVersion]


Options

Verbosity

How much information should the command line output? [-Verbosity]

Force English output

Forces the command line to run using an invariant, English-based culture. [-ForceEnglishOutput]

Timeout (in seconds)

How long to wait for the action to finish running before timing out. Leaving this blank (or zero) will default to 86400 seconds (24 hours).

Treat failure as warning

Tick to continue build on failure marking the action with a warning status.

Ignore warnings

If this is ticked, any warnings logged will not mark the action with a warning status.


Environment

Environment Variables

...