Unable to add Xamarin.Android and Xamarin.iOS to P

2019-02-19 04:28发布

问题:

I'm trying to workout a sample project using MvvmCross, but I'm stuck with the first step of adding the frameworks in VS2012.

When I try to add Xamarin.Android and Xamarin.iOS framework in a PCL project, it is showing an error

There is no available functionality that is portable between the frameworks you have selected

I tried following the steps in this answer, but it didn't worked.

Can someone shed some light on this issue.

Thanks.

回答1:

Recent (mainly good) changes from Microsoft mean that the platforms that can officially be used together is now set to:

  • sl5
  • wp8
  • winstore
  • wpf with .net 45
  • the xam twins

To support these try the 3.1.1 release from Mvvmcross - currently available in beta as Try the beta packages - 3.1.1-beta5 - use "include prerelease" in nuget.