I'm trying to add a Profile151 PCL nuget package to a Xamarin iOS and Android project in Visual Studio 2015 (Update 3) and it tells me that the package is not compatible. The package has the library folder "portable-net451-win81-wpa81" (which is the "official" recommendation for Profile151 PCL)
This is the error message: "Could not install package 'velox.core 1.0.2.8'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."
The strange thing is that I can add the same nuget package to the project using Xamarin Studio.
What's the reason for this? Is there a workaround?
Xamarin.iOS10
target here. The only target isportable-net451-win81-wpa81
. Meaning it will work in a PCL with those items, but not a Xamarin.iOS project. The error mentions this as well:Could not install package 'velox.core 1.0.2.8'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Seeing that it does indeed work in XS is another story. – Jon DouglasXamarin.iOS.xml
file in/Library/Frameworks/Mono.framework/Versions/4.4.2/lib/mono/xbuild-frameworks/.NETPortable/v4.6/Profile/Profile151/SupportedFrameworks
I'm reporting a bug on the NuGet end as we speak and will follow up with an Answer on SO to track. – Jon Douglas