I\'m getting a build error that I need to upgrade NuGet:
The \'Microsoft.NETCore.Platforms 1.1.0\' package requires NuGet client version \'2.12\' or abo
How to Upgrade NuGet with Visual Studio 2017
That because you have a .nuget
folder at solution level, that folder contains an old (2.8.x) nuget.exe
file. A lot of packages might need new version of that file. You should update it:
Windows x86 Commandline
tab, download 3.3 or above.And try again.
Besides, your solution is using an old nuget restore method that has been deprecated. Automatic Package Restore is the NuGet team's recommended approach to Package Restore within Visual Studio, and it was introduced in NuGet 2.7. Beginning with NuGet 2.7, the NuGet Visual Studio extension integrates into Visual Studio's build events and restores missing packages when a build begins.
See this thread NuGet auto package restore does not work with MSBuild and Nuget: Switching from "Enable Package Restore" to "Automatic Package Restore" for some more details.
Hope this helps.