Search code examples
xamarinportable-class-libraryxamarin-studio

Xamarin studio for windows issue: framework not installed .NETPortable profile 136


I want to develop android version of my app using xamarin studio for windows. Previously I was using it on Mac. The problem is that when I open solution on windows machine, all portable projects can't be buil due to problems with refferenced portable subset. "Framework not installed .NETPortable profile 136" is displayed in a references trey. Following tools are installed: Mono for Windows 3.2.3; MDK 3.4; Xamarin.Android 4.12.4; PortableLibraryTools for VS 2010.


Solution

  • Profile136 is included in the Portable Library Reference Assemblies 4.6. The Portable Library Tools 2 does not include this profile.

    The Portable Library Reference Assemblies 4.6 download installs a zip file into

    C:\Program Files (x86)\Microsoft .NET Portable Library Reference Assemblies 4.6\PortableReferenceAssemblies.zip
    

    which you will need to unzip and extract the contents into the directory

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable
    

    After that you will need to reinstall Xamarin.Android so these profiles have the Xamarin.Android profiles added to them.