I am trying to use the FSharp.Data library in a F# class library project (Not portable class. I am getting this error:
Test 'Test1' failed: OneTimeSetUp: System.MissingMethodException : Method not found: 'FSharp.Data.CsvFile FSharp.Data.CsvFile.Load(System.String, Microsoft.FSharp.Core.FSharpOption
1<System.String>, Microsoft.FSharp.Core.FSharpOption
1, Microsoft.FSharp.Core.FSharpOption1<Boolean>, Microsoft.FSharp.Core.FSharpOption
1)'.
I googled the error and found a couple of the similar posts like this one
Using F# JsonProvider within a portable class library fails
but i am not in a portable class library just a normal class library. also i get similar error if i want to use the FSharp.Data in a F# unit test project.
Any advise will be appreciated.
FYI, I did install the the FSharp.Data in my Class library and test project which getting the error.
thanks
i have tried to target .net 4.5, 4.5.2 and F# 4.3.1 and 4.4 with FSharp.Data version 2.0.14 to 2.3.2 i have no luck with any of the combo.
Thanks to Mark and Panagiotis. I am able to resolve this missing method problem with binding redirection. For those having similar issue, I did the followings:
add the following lines (based on your F# version) to the config file:
make sure the config file is exported to when newer
I have to use TestDriven/test with nunit to launch the nunit window as the VS test explorer still can't discover the test case.