Can't run F# after updating Visual Studio 2017
I just updated my Visual Studio 2017 installation to the latest version (15.6.0) and now I'm unable to run F# script. When I try a dialog box says that "fsc.exe has stopped working" and the following message appears in LINQPad:
"Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Compiler.Private, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.FSharp.Compiler.CommandLineMain.main(String[] argv)"
I tried with the latest release and the latest beta of LINQPad, both have the same behavior.
"Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Compiler.Private, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.FSharp.Compiler.CommandLineMain.main(String[] argv)"
I tried with the latest release and the latest beta of LINQPad, both have the same behavior.
Comments
Here is the crash report, it seems LINQPad doesn't use the latest F# compiler version:
I eventually copied the contents of "C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0" from one of my other computers to get everything working again.