I have an F# project in VS 2017 using FSharp.Data.SqlProvider 1.1.11 and FSharp.Core 4.4.1.0. I have an .fsx file that does what I want. I copied its contents to an .fs file. I’m trying to call that .fs file from an MSTest class. It’s throwing an exception saying it can’t load FSharp.Core version 4.3.1.0.
JPBlanc
72.9k17 gold badges137 silver badges180 bronze badges
asked Oct 16, 2017 at 20:43
-
What .net version is your project targeting in your project settings? Check out: fsharp.github.io/2015/04/18/…jpe– jpe10/17/2017 07:35:30Commented Oct 17, 2017 at 7:35
-
Both the F# class library and MSTest project target 4.6.1Brett Rowberry– Brett Rowberry10/18/2017 03:27:18Commented Oct 18, 2017 at 3:27
1 Answer 1
To the test project I added FSharp.Core 4.3.1 and a binding redirect pointing versions 0.0.0 to 4.4.1 to 4.3.1. All is well.
answered Oct 18, 2017 at 3:24
lang-ml