I want to be able to build a Xamarin.Forms project on a Mac from terminal (with xbuild) and one of the steps is to make a package restore. Thereby I get the following error:
The 'Microsoft.NETCore.UniversalWindowsPlatform 5.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '220.127.116.11'.
The UWP platform shouldn't be build on the Mac, but nevertheless I think I will need NuGet3 for other NuGet packages. Under
/private/etc/paths.d I found mono-commands file pointing to
/Library/Frameworks/Mono.framework/Versions/Current/Commands. One of the commands is nuget, which is an alias pointing to
/Library/Frameworks/Mono.framework/Versions/5.2.0/bin/nuget. This is the version 18.104.22.168 he uses in the terminal if you use the
nuget command. In the
bin folder I also saw
nuget3, but I can't call it from the terminal. Here I get
command not found
So I don't think I need to update to NuGet3 and also no updates are shown currently. In addition, I don't know how I can call nuget3. Should I also create an alias for it? What if there is an update? Am I on the right track?
I have Xamarin Studio installed and the about dialog shows NuGet Version 22.214.171.124. In the Add-Ins > IDE extensions it is stated that NuGet Package Management/NuGet Packaging 6.3 are used. So XS itself uses NuGet3?