I have a portable library for which the version of FSharp.Core
3.7.4.0
. Installation (in the Unit Test project) FsUnit
installs version 3.1.2.5
as a dependency of 3.1.2.5
.
In this regard, using the portable library functions in my Unit Test project, for example:
module StammaTests.PieceTests open Stamma open NUnit.Framework open FsUnitTyped [<Test>] let ``Testing a Basic function`` () = Piece.toChar Black King |> shouldEqual 'k'
gives an error:
Result message: System.IO.FileLoadException: Failed to load file or assembly "FSharp.Core, Version = 3.7.4.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'or one of its dependencies. The installed assembly manifest definition does not match the Help assembly. ( Exception from HRESULT: 0x80131040)
I tried to upgrade the version of FSharp.Core
from NuGet to 4.0.0.1
(even checking both projects when updating), and now even something simple:
[<Test>] let ``Testing the test`` () = 1 |> shouldEqual 1
not working giving this similar error.
Result message: System.IO.FileLoadException: Failed to load file or assembly "FSharp.Core, Version = 4.3.1.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'or one of its dependencies. The installed definition of the assembly manifest does not match the Help assembly. ( Exception from HRESULT: 0x80131040)
And the error for the first failure test does not change.
I feel that I am missing something painfully obvious, and I found several people with similar problems, but I donβt understand what they did to solve it (they all seemed to solve it.) For example this one .
Edit
Both projects are libraries, and I don't have an app.config
file to add anything.