1) Create an F# Forms app using PCL
2) Add an F# PCL
3) Add a reference to the PCL in the F# Forms PCL (this fails with incompatible target framework).
It appears there should be a workaround for this here:
http://stackoverflow.com/questions/23111782/how-do-i-add-a-reference-to-f-portable-library-from-c-sharp-portable-class-libr
http://stackoverflow.com/questions/34922480/cant-add-reference-from-c-sharp-pcl-project-to-f-pcl-project-as-project-refere
but these do not work.
Has anyone found another workaround with Xamarin Studio?
Xamarin Stuido alpa, 6.1 was used: build 5338)
Posts
I just tried your repro steps with build 5345 and it worked fine for me. Looking at the project files, both projects appeared to be Profile78, though the Project Options shows it as ".NET Portable Subset".
If it still happens with the latest build could you share your project files?
/cc @JasonImison
I do have the same problem in build 5441.
1) Create C# Froms app
2) Add C# PCL
3) Add F# PCL
4) Try to add a reference from the C# PCL to the F# PCL
-> In the reference dialog you will see: Incompatible framework Definition: :NETFramework=v4.5;Profile=Profile78)
Just tried it with 6.1.1 (build 15)

Still the same problem:
I'll take a look at this for you. I added a bugzilla that you might want to track.
I just tried this with XS 6.1 (build 5441) and didn't see any issues. Can you try the code in this repo? https://github.com/nosami/bug44976
@JasonImison Thanks for having a look. In your Github repo you reference a C# PCL from a F# PCL. That works. But You cannot reference a F# PCL from your C# PCL. I tried it with Version 6.1.1 (build 15)
1. Remove reference in fspcl to the cspcl
2. Try to add a reference in the cspcl to the fspcl
I fixed the reference issue here and it's being tracked here https://bugzilla.xamarin.com/show_bug.cgi?id=45556. Looks like any F# project references weren't working from C#.
@JasonImison figured out a workaround:
1. Even if F# was installed with VS the F# tools are required https://www.microsoft.com/en-us/download/details.aspx?id=48179
2. Then it is possible to add a referency by using the assembly (not by project) and it will compile
@JasonImison figured out a workaround:
1. Even if F# was installed with VS the F# tools are required https://www.microsoft.com/en-us/download/details.aspx?id=48179
2. Then it is possible to add a referency by using the assembly (not by project) and it will compile