Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update FSharp.Core for Visual Studio 2012 fsi

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.

  • Correct version of Fsharp.Core
  • Could not load file or assembly FSharp.Core, Version=4.0.0.0
  • How to use FSharp.Core 4.3.0 when all you have is 4.3.1

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

like image 626
NoIdeaHowToFixThis Avatar asked Oct 21 '22 09:10

NoIdeaHowToFixThis


1 Answers

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.

like image 141
nicolas Avatar answered Oct 23 '22 01:10

nicolas