NuGet Installer task version 0.*
TFS 2017 | TFS 2015 | TFS 2013
Use this task to install and update NuGet package dependencies.
Demands
If your code depends on NuGet packages, make sure to add this task before your Visual Studio Build task. Also make sure to clear the deprecated Restore NuGetPackages checkbox in that task.
Arguments
Argument | Description |
---|---|
Path to Solution | Copy the value from the Solution argument in your Visual Studio Build task and paste it here. |
Path to NuGet.config | If you are using a package source other than NuGet.org, you must check in a NuGet.config file and specify the path to it here. |
Disable local cache |
Equivalent to nuget restore with the -NoCache option.
|
NuGet Arguments | Additional arguments passed to nuget restore. |
Advanced options
Argument | Description |
---|---|
Path to NuGet.exe | (Optional) Path to your own instance of NuGet.exe. If you specify this argument, you must have your own strategy to handle authentication. |
Task control options
Examples
Install NuGet dependencies
You're building a Visual Studio solution that depends on a NuGet feed.
`-- ConsoleApplication1
|-- ConsoleApplication1.sln
|-- NuGet.config
`-- ConsoleApplication1
|-- ConsoleApplication1.csproj
Build tasks
|
Install your NuGet package dependencies.
|
|
Build your solution.
|