Skip to content
Maxime LUCE edited this page Jan 24, 2017 · 1 revision

The NuGet Update task allows updating NuGet Packages from solution files.

Example

grunt.initConfig({
    nugetupdate: {
        project: {
            src: 'project.sln'
        }
    }
});

You can find more options on this page.

src

type: string, array | required

Specify input files to update. Only sln files are allowed. Accept globbing patterns

options

type: object | optional

Additionnal Options

options.source

type: string | optional | default: 'nuget.org or NuGet.config's DefaultSource '

Specifies a list of package sources to use for the updates.

options.fileConflictAction

type: string | optional | default: none

Specifies the action to take when asked to overwrite or ignore existing files referenced by the project. Values are overwrite, ignore, none.

options.configFile

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.

options.msBuildVersion

type: number | optional | default: MSBuild in your path

Specifies the version of MSBuild to be used with this command. Supported values are 4, 12, 14, 15. By default the MSBuild in your path is picked, otherwise it defaults to the highest installed version of MSBuild.

options.prerelease

type: boolean | optional | default: false

Allows updating to prerelease versions. This flag is not required when updating prerelease packages that are already installed.

options.safe

type: boolean | optional | default: false

Specifies that only updates with the highest version available within the same major and minor version as the installed package will be installed.

options.self

type: boolean | optional | default: false

Updates nuget.exe to the latest version; all other arguments are ignored.

Clone this wiki locally