dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.94k stars 788 forks source link

running fsianycpu.exe fails with missing assembly #5544

Closed smoothdeveloper closed 6 years ago

smoothdeveloper commented 6 years ago

After updating my VS2017 to 15.8.1, if I launch fsianycpu.exe from the sdk folder (C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0)

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 Sample.Microsoft.FSharp.Compiler.Interactive.Main.MainMain(String[] argv)

I just want to confirm if this is a known issue and if there is a workaround?

vasily-kirichenko commented 6 years ago

Fresh windows + vs 15.8.1 installation:

image

smoothdeveloper commented 6 years ago

It seems my C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0 is spurious, @vasily-kirichenko pointed me to c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\ which works.