Forum Xamarin.iOS

Building a PCL on Mac OS/X

dvmorrisdvmorris USMember

I have seen various threads on this around the internet, but I would like get everything summarized in one place. Can I build a PCL on Mac OS/X on the command line, and if so, how do I do it?

I can build PCLs on Visual Studio by manually creating a Profile in:

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

And I've seen some instructions for Mac OS/X that say to edit the CSharp targets file as mentioned here:

If you find Portable Class Libraries will not build for you in MonoTouch - especially if you find you get messages about Func, Action, "method not available System.Linq.Extensions.Aggregate" and all sorts of other mscorlib type errors, then the fix for this may be:

This has been reported and fixed before:


But it doesn't seem to want to stay fixed :/

The fixed file is available on:

Those instructions did not quite work for me. Is there something else I'm missing? I'm on the latest version of Xamarin as of yesterday.

Sign In or Register to comment.