We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d936c commit 619d21cCopy full SHA for 619d21c
src/fsharp/fsi/fsi.fs
@@ -2358,6 +2358,9 @@ type FsiEvaluationSession (fsiConfig: FsiEvaluationSessionHostConfig, argv:strin
2358
let defaultFSharpBinariesDir = System.AppDomain.CurrentDomain.BaseDirectory
2359
let currentDirectory = Directory.GetCurrentDirectory()
2360
#endif
2361
+ // When used as part of FCS we cannot assume the current process is fsi.exe
2362
+ // So we try to fallback to the default compiler dir.
2363
+ let defaultFSharpBinariesDir = Internal.Utilities.FSharpEnvironment.BinFolderOfDefaultFSharpCompiler(None).Value
2364
2365
let tcConfigB = Build.TcConfigBuilder.CreateNew(defaultFSharpBinariesDir,
2366
true, // long running: optimizeForMemory
0 commit comments