Search code examples
xamarinnugetautofacnuget-packageportable-class-library

Portable Class Library not compatible targets, but should be


I am trying to create a Portable Class Library which uses Autofac, but I am getting an installation error. I run

Install-Package Autofac

Which results in the following:

enter image description here

Here are the targets of my Portable Class Library.

enter image description here

When I look at the Autofac package downloaded through the nuget for other projects, it looks like it should support my PCL.

enter image description here

I have even downloaded the source for Autofac and here are the targets for the Autofac project.

enter image description here

So, why am I seeing the error? This is not specific to Autofac either. I get similar errors with other frameworks such as Portable.Ninject. I have tried creating PCLs with various permutations of targets and nothing seems to work.


Solution

  • It will need to be rebuilt against the new Unified API, which is Xamarin.iOS10 in that message: http://blog.xamarin.com/how-to-update-nuget-packages-for-64-bit/