Skip to content

Commit 9f3f779

Browse files
authored
Fix fscorelocation on coreclr when no fsharp.core dll was provided (dotnet#2213)
1 parent a54abbf commit 9f3f779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fsharp/CompileOps.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ let GetFSharpCoreReferenceUsedByCompiler(useSimpleResolution) =
16401640
let fscCoreLocation =
16411641
let fscLocation = typeof<TypeInThisAssembly>.Assembly.Location
16421642
Path.Combine(Path.GetDirectoryName(fscLocation), fsCoreName + ".dll")
1643-
if File.Exists(fscCoreLocation) then fsCoreName + ".dll"
1643+
if File.Exists(fscCoreLocation) then fscCoreLocation
16441644
else failwithf "Internal error: Could not find %s" fsCoreName
16451645
#else
16461646
// TODO: Remove this when we do out of GAC for DEV 15 because above code will work everywhere.

0 commit comments

Comments
 (0)