Framework .NETPortable 4.0 Profile1

wallymwallym USInsider, Beta ✭✭✭

I'm getting a message in my portable library that Framework .NETPortable 4.0 Profile1 is not installed. I'm also seeing System, System.Core, and System.Xml are listed in red in the references. To me, this says that these assemblies are not available. The library does seem to compile. Am I missing something on this?

I'm running in the current beta channel on my mac and am trying to create something with Xamarin.Android.

Wally

Posts

  • AustinFoxleyAustinFoxley USMember ✭✭

    You should change the profile to Profile104 in the code. I am not sure which version you are on.

    You will need to copy the .NETPortable folder from your Windows PC to your mac in the /Library/Frameworks/Mono.framework/External/xbuild-framework/.NETPortable folder:

    http://mono.1490590.n4.nabble.com/Portable-Class-Library-td4659991.html

  • wallymwallym USInsider, Beta ✭✭✭

    Thanks @jamesmontemagno. That actually makes sense. :-)

  • wallymwallym USInsider, Beta ✭✭✭

    Oops, forgot to ask. How do I change to profile104? I'm running on my Mac, but am switching to windows and VS.

  • AustinFoxleyAustinFoxley USMember ✭✭
    edited August 2013

    You will want to unload your project in VS (or just open the csproj in a text editor) and you will find this line to change:
    <TargetFrameworkProfile>Profile104</TargetFrameworkProfile>

Sign In or Register to comment.