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

Install a NuGet package.

desc "Install required packages"
nugetinstall :install do |cmd|
  cmd.package = "foo"
  cmd.version = "1.0"
  cmd.prerelease
end

Required Parameters

Package

The name of the nuget package to install.

package = "foo"

Optional Parameters

Version

The version spec for this package.

version = "1.0"

Output Directory

The directory to download/install the package to.

output_directory = "path/to/packages"

Sources

The sources to query for the package.

sources = ["http://mycompany/nuget/feed"]

No Cache

Disable using the machine cache.

no_cache

Prerelease

Allow prerelease packages to be installed.

prerelease

Exclude Version

Only write the package name, not version, in the destination folder.

exclude_version

Guidance

(none)

Clone this wiki locally