Skip to content

Commit

Permalink
Prevent using current dotnet in nuget manager tool lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
auduchinok committed Mar 9, 2022
1 parent 8989e84 commit be0cb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsharp/utils/CompilerLocationUtils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ module internal FSharpEnvironment =
let candidate =
let assemblyLocation = Path.GetDirectoryName(typeof<Int32>.GetTypeInfo().Assembly.Location)
Path.GetFullPath(Path.Combine(assemblyLocation, "..", "..", "..", dotnet))
if fileExists candidate then
if isWindows && fileExists candidate then
Some candidate
else
match probePathForDotnetHost () with
Expand Down

0 comments on commit be0cb27

Please sign in to comment.