I like the new 'msbuild pack' nuget package generation in VS2017. I would like to use it to generate a library that uses Xamarin.Mac to be consumed by Xamarin Mobile Mac projects. I tried
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>Xamarin.Mac</TargetFrameworks>
</PropertyGroup>
</Project>
but I get
Severity Code Description Project File Line Suppression State
Error Cannot infer TargetFrameworkIdentifier and/or TargetFrameworkVersion from TargetFramework='Xamarin.Mac'. They must be specified explicitly. Kumquat.Common.Mac C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 84
This example (https://github.com/Azure/azure-mobile-apps-net-client/blob/master/src/Microsoft.Azure.Mobile.Client/Microsoft.Azure.Mobile.Client.csproj) has
<TargetFrameworks>netstandard1.4;net45;MonoAndroid71;Xamarin.iOS10;uap10.0</TargetFrameworks>
However, when I try Xamarin.iOS10 on my end, I get a similar error. Is there something special I need to install on my machine to get Xamarin.* as Target Frameworks? I do have Xamarin installed. I have VS2017 (version 15.2).