-
Notifications
You must be signed in to change notification settings - Fork 10
Restore Options
The NuGet Restore task allows restoring NuGet Packages from solution files or packages.config files.
grunt.initConfig({
nugetrestore: {
restore: {
src: 'tests/packages.config',
dest: 'packages/'
}
}
});
You can find more options on this page.
type: string, array | required
Specify input files to restore. Accept globbing patterns
type: string | required
Specify output directory to restore packages to
type: object | optional
type: string | optional | default: 'nuget.org or NuGet.config's DefaultPushSource '
Specifies the server URL. If not specified, nuget.org is used unless DefaultPushSource config value is set in the NuGet config file. Starting with NuGet 2.5, if NuGet.exe identifies a UNC/folder source, it will perform the file copy to the source.
type: boolean | optional | default: false
Disable using the machine cache as the first package source.
type: string | optional | default: '%AppData%\NuGet\NuGet.config'
The NuGet configuation file. If not specified, file %AppData%\NuGet\NuGet.config is used as configuration file.
type: boolean | optional | default: false
Checks if package restore consent is granted before restoring a package.
type: string | optional | default: dest
Specifies the packages directory. -OutputDirectory is an alias of this option. Optional since it can be specified by using dest argument.
type: string | optional
Specifies the solution directory. Not valid when restoring packages for a solution.
type: boolean | optional | default: false
Disable parallel nuget package restores.