Search code examples
visual-studio-2012mvvmcrossportable-class-library

Adding MvvmCross nuget package reference to PCL failed


Simple task leads to error. I'm trying to create new PCL lib with mvvmcross reference. https://dl.dropboxusercontent.com/u/19503836/profile.png

Then I'm adding nuget reference: https://dl.dropboxusercontent.com/u/19503836/mvvmcross_monodroid_pcl.png

Profile selection exactly the same as at MvvmCross demos but it doesn't work. Possibly it is because when I select .net 4.5 & wp7.1 it goes back to .net 4.0 and wp7.0 but I'm not sure how to fix that.

Probably I have to manually setup Profile in PCL .proj file but I don't know what the number should I write there? Current profile is "Profile8"

Thank you for any suggestions?


Solution

  • I think the profile you want is Profile104. You need to copy the MonoTouch and MonoAndroid XML files to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile104\SupportedFrameworks. Then when you choose the frameworks you have selected in the screenshot it won't automatically select .NET 4 and WP 7.0.