NuGet Tool Installer task
Use this task in a build or release pipeline to find, download, and cache a specified version of NuGet and add it to the PATH.
# NuGet Tool Installer # Acquires a specific version of NuGet from the internet or the tools cache and adds it to the PATH. Use this task to change the version of NuGet used in the NuGet tasks. - task: NuGetToolInstaller@0 inputs: #versionSpec: '4.3.0' #checkLatest: false # Optional
|Version Spec||Specify which NuGet version you want to use. Examples:
|Check for Latest Version||Select if you want the agent to check for the latest available version that satisfies the version spec. For example, you select this option because you run this build on your self-hosted agent and you want to always use the latest
If you're using the Microsoft-hosted agents, you should leave this check box cleared. We update the Microsoft-hosted agents on a regular basis, but they're often slightly behind the latest version. So selecting this box will result in your build spending a lot of time updating to a newer minor version.
|Control options||See Control options.|
This task is open source on GitHub. Feedback and contributions are welcome.
Q & A
Where can I learn more about tool installers?
For an explanation of tool installers and examples, see Tool installers.
Do I need an agent?
You need at least one agent to run your build or release. Get an agent for Linux, macOS, or Windows.
I can't select a default agent pool and I can't queue my build or release. How do I fix this?
See Agent pools.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.