I am getting the following error when trying to add my NuGet package to my project:
Could not install package ''. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework.
I am developing in Visual Studio 2015 on Windows 10 and have the latest version of Xamarin (v22.214.171.1240) installed. What doesn't make sense is that my NuGet package is built using Profile111. So the above error doesn't really make sense.
I am using the NuGet Package Explorer to build my NuGet package, and the default folder name that gets created when I select the "profile111" platforms is "portable-net45+wp8+win8". I found that a workaround/hack to get my package added to my project was to create another lib subfolder with the same name as my Xamarin Forms package portable folder name... i.e. "portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10". Having this other folder lets me add the package and everything seems to work across all platforms with no issues.
Can anyone explain what this error really means and why my workaround works?