Can I specify which external F# compiler should be used in LINQPad?

edited March 20
I have Visual Studio 2017(F# 4.5) and Visual Studio 2019(F# 4.6) installed, but seems that my F# compiler did not pick up the F# 4.6 features. Can I specify F# 4.6 instead of 4.5 in LINQPad?

Simple example(Should run in F# 4.6):
let data = {| X = 1; Y = 2 |}
But failed with:
) or end of expression expected (change the Query Language to 'C# Statements' for statement-based queries)


  • @JoeAlbahari Please take a look on this and try to upgrade to F# 4.6.
  • Do you know which folder the F# 4.6 compiler is installed to? I've looked in Program Files\Microsoft SDKs\F# and it doesn't appear to be there.
  • edited May 24
    Here is the path of the fsharp compiler
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\fsc.exe

    or for the .net core version
    C:\Program Files\dotnet\sdk\<<version>>\FSharp\fsc.exe
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!