diff --git a/src/fsharp/utils/CompilerLocationUtils.fs b/src/fsharp/utils/CompilerLocationUtils.fs index d6df7915d7f..63c0c930483 100644 --- a/src/fsharp/utils/CompilerLocationUtils.fs +++ b/src/fsharp/utils/CompilerLocationUtils.fs @@ -427,7 +427,7 @@ module internal FSharpEnvironment = let candidate = let assemblyLocation = Path.GetDirectoryName(typeof.GetTypeInfo().Assembly.Location) Path.GetFullPath(Path.Combine(assemblyLocation, "..", "..", "..", dotnet)) - if fileExists candidate then + if isWindows && fileExists candidate then Some candidate else match probePathForDotnetHost () with