Tuesday, April 23, 2013

My current PCL setup in Visual Studio for the Xamarin twins

To get PCLs working for the Xamarin Twins (MonoTouch and Mono for Android) in Visual Studio - the only current changes I make are these two files which I add to:


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




If you have previous files added - especially for VSMonoTouch - then please remove these .xml files as they may cause issues.

Following Evolve, we *hope* that these additional files won't be needed soon - hopefully in the next 4 to 8 weeks. Please bare with us - the best cakes take time to bake :)

8 comments:

  1. I tried the Monotouch one and it worked for me. I also had to select "Windows Phone 7.5" instead of "Windows Phone 7.1 or Higher" in add PCL dialog

    ReplyDelete
  2. Yes I can confirm that it is working only with WP 7.5 (this is ok)

    ReplyDelete
  3. Hi trying out my first mvvmcross demo.
    Freshly installed xamarin studio and VS2012 on Win8 . Configured the two files as described above, and succesfully created a PCL targeting .NET4.5, silverlight 4, WP7.5, Store Apps, Mono for Android. MonoTouch. But when trying to install MvvmCross Hot Tuna from Nuget i get

    Could not install package 'MvvmCross.PortableSupport 3.0.8.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile104', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.

    Not quite sure what to make of it?

    ReplyDelete
    Replies
    1. Thanks. Please publish as much info as you can in a stackoverflow question. I and nuget people will try to help there. Stuart

      Delete
    2. Hi. I am having the same exact problem.

      Delete
    3. I was having the same exact setup and problem. The only problem was I needed to update Nuget.
      http://stackoverflow.com/questions/14070138/install-package-could-not-install-package-wptoolkit-error
      Go to Tools: Extensions and Updates: Updates.

      Delete
  4. Hi, is there any updates about this topic?

    "Following Evolve, we *hope* that these additional files won't be needed soon - hopefully in the next 4 to 8 weeks. Please bare with us - the best cakes take time to bake :)"

    I have heard that PCL and Xamarin both support System.Threading.Tasks assembly but i just cant make it work.

    ReplyDelete
    Replies
    1. Try these links - http://slodge.blogspot.co.uk/2013/07/nuget-async-pcl-links.html - others have this working

      Delete