2

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
2
  • What .net version is your project targeting in your project settings? Check out: fsharp.github.io/2015/04/18/… Commented Oct 17, 2017 at 7:35
  • Both the F# class library and MSTest project target 4.6.1 Commented Oct 18, 2017 at 3:27

1 Answer 1

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.