How do you create an F# PCL that can be called from a C# Xamarin Android project?
Something simple, like this in a PCL:
namespace FSharpPCL2
type Class1() =
member this.X (s: string option) =
s
|> Option.map (fun t -> t + "stuff")
Try calling it from a C# Xamarin Android project, and you'll get a compiler error something like this:
MainActivity.cs(26,41): error CS0012: The type
Microsoft.FSharp.Core.FSharpOption
1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `FSharp.Core, Version=3.78.3.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
But it's not clear to me how you actually manage to include the right FSharp.Core in the C# project.