Skip to content
Henrik edited this page Aug 21, 2014 · 1 revision

Create a NuGet package from a nuspec file.

desc "Create the nuget package"
nugetpack :pack => [:build] do |cmd|
  cmd.nuspec = "path/to/nuspec"
  cmd.base_path = "base/path"
  cmd.output_directory = "path/to/out/dir"
  cmd.symbols
end

Required Parameters

Nuspec

This is the location of the nuspec file.

nuspec = "path/to/nuspec"

Optional Parameters

Output Directory

Specifies the directory for the created NuGet file.

output_directory = "path/to/out/dir"

Base Path

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

base_folder = "base/path"

Properties

List of properties for this package (for templates).

properties = {:foo => "foo", :bar => "bar"}

Symbols

Generate a symbols package.

symbols

Guidance

(none)

Clone this wiki locally