F# can't specify FSharp.Core dll version
If I go into add references and select FSharp.Core.dll from C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.NETFramework\v4.0\4.3.0.0
Linqpad will no longer run giving a message from what I believe is the Fsc compiler saying
error FS1222: When mscorlib.dll or FSharp.Core.dll is explicitly referenced the --noframework option must also be passed
-
Christoph Rüegg commented
Repro:
1) add a NuGet reference to "MathNet.Numerics.Fsharp" v3.3.0.beta2 (prerelease) which on .Net 4+ depends on the FSharp.Core.Microsoft.Signed package.
2) click Execute, without any code added
3) error FS1222 -
Christoph Rüegg commented
@maslow I've tried again and it still did not work for me. I suspect this is because FSharp.Core is being referenced before any of this is executed (because it's a NuGet dependency).
-
Maslow commented
@christoph I had to actually highlight and run the redirect code in the fiddle, That changed it for the appDomain. Then the whole query would run fine without the redirect code included at all.
-
Christoph Rüegg commented
Note that in my case FSharp.Core is referenced explicitly by a NuGet package I need, so I can't skip the explicit reference.
-
Christoph Rüegg commented
The workaround in the comment doesn't seem to work for me.
-
Maslow commented
given this code added before my F# Program runs it works as expected: https://dotnetfiddle.net/UnS2vU