Question

I am trying to run a script in the fsi. I get the following error.

Could not load file or assembly 'FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I found the following references that suggest I may have to update the default FSharp.Core version somewhere inside Visual Studio, downloading the package with nuget is not enough.

I am not sure how to fix this and I am afraid to permanently damage the vs configuration.

Was it helpful?

Solution

You can see where FSI is located by typing

System.AppDomain.CurrentDomain.BaseDirectory;;

In my computer I get

C:\Program Files (x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\

And I have a file

Fsi.exe.config

which does the redirects.

You probably point to an old FSharp installation, as 4.3.0.0 and 4.3.1.0 should be binary compatible.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top