Microsoft

Using the latest NuGet in your build

Sep 30, 2017Alex Mullans
Using the latest NuGet in your build
SummaryAI, from the source post

This post addresses the challenge of using newer versions of NuGet (4.1+) with Team Build in Visual Studio Team Services (VSTS) and Team Foundation Server (TFS). It introduces the 'NuGet Tool Installer' task for VSTS and TFS 2017 Update 3+, which automatically installs the required NuGet version. For older TFS versions (TFS 2017 Update 2 and earlier), a workaround involving a PowerShell script to fetch and use a specific NuGet version before the 'NuGet Restore' or 'NuGet' task is provided. This ensures compatibility with new .NET Core and .NET Standard project types and meets the NuGet.org protocol version requirement for pushing packages.

More from the Azure Pipelines Agent Operating System Support trail