Thursday, March 21, 2013

Xamarin.iOS with MvvmCross in VS2012 - "The current project does not support references to Portable Library projects."

If you see this message in VS2012 with Xamarin.iOS working with MvvmCross

Unable to add a reference to project 'MyApp.Core'. The current project does not support references to Portable Library projects.

then this may be because you have not yet got PCL support added for MonoTouch (Xamarin.iOS)

To add this, create a new file

MonoTouch,Version=v1.0+.xml

inside:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile104\SupportedFrameworks

with contents:

2 comments:

  1. Thanks for this... fixed it for me :).

    ReplyDelete
  2. Similar problem in Mac... do you know how to fix it in Mac? Error: Assembly not available for .NETPortable 4.0 Profile 1 Profile (in Mono 2.10.12)

    ReplyDelete