Skip to content
jamlen edited this page Mar 11, 2013 · 1 revision

Installs a package using the specified sources. If no sources are specified, all sources defined in %AppData%\NuGet\NuGet.config are used. If NuGet.config specifies no sources, uses the default NuGet feed.

All values can also be set through Configuration.

How to use the NuGetInstall task

nugetinstall :binaries do |nuget|
    nuget.command = "nuget.exe"
    nuget.package = "./packages.config"
    nuget.output_directory = "packages"
end

##Required Properties

package Specify the id and optionally the version of the package to install. If a path to a packages.config file is used instead of an id, all the packages it contains are installed.

##Optional Parameters

version The version of the package to install.

command The location of nuget.exe. (If not specified it will default to nuget.exe and search in the PATH environment variables).

output_directory Specifies the directory in which packages will be installed. If none specified, uses the current directory.

exclude_version If set, the destination folder will contain only the package name, not the version number

no_cache Disable looking up packages from local machine cache.

prerelease Allows prerelease packages to be installed. This flag is not required when restoring packages by installing from packages.config.

sources A list of packages sources to use for the install.

Albacore

Meta & Config

Tasks

Dev & Docs

Clone this wiki locally