Reputation: 797
I'm using the latest Xamarin Studio and have even tried the alpha channel and I'm still getting the same issue.
/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/Microsoft.Common.targets: Warning: Unable to find framework corresponding to the target framework moniker '.NETPortable,Version=v4.0,Profile=Profile3'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.
This is happening with creating just an empty PCL project. I'm not seeing any posts which lead me to any answer. I am targeting Mono 3.2 and I have tried several profile numbers.
Any ideas?
Upvotes: 5
Views: 5169
Reputation: 358
My issue was related but different - opening an existing project made by another developer required me to manually select the correct profile.
Click on the specific project (not the solution) and select the gear icon (in the file tree). Selection Options > Build and pick a different profile.
It may be related to requiring you to purchase more capability in Xamarin as well, I should add.
Upvotes: 0
Reputation: 31799
Since the profile your are targeting is Profile 3 (.net 4.0 and Silverlight4) the only way and older version would work if it's prior to Portable support in mono and faked it (I believe that would be some version prior to 3.0.12 and faking it may not be what you want, you may want to change your target).
Mono 3.1.2 was the first version that could out of the box compile PCL libraries, because it was distributed with facaded assemblies in
/Library/Frameworks/Mono.framework/Versions/3.1.2/lib/mono/xbuild-frameworks/.NETPortable
for:
Mono 3.2.0 currently has none.
Upvotes: 4