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: http://slodge.blogspot.co.uk/2013/01/if-pcls-will-not-build-for-you-in.html
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: http://stackoverflow.com/questions/12041290/monodevelop-is-it-possible-to-switch-pcls-compiler/12062589#12062589 This has been reported and fixed before: - https://bugzilla.xamarin.com/show_bug.cgi?id=6649 - https://bugzilla.xamarin.com/show_bug.cgi?id=7174 But it doesn't seem to want to stay fixed :/ The fixed file is available on: https://files.xamarin.com/~jeff/Microsoft.Portable.CSharp.targets
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.