@@ -2820,24 +2820,28 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
28202820 let facades = Path.Combine( api, " Facades" )
28212821 if Directory.Exists( facades) then
28222822 yield facades
2823- else
2824- yield runtimeRoot
2825- let facades = Path.Combine( runtimeRoot, " Facades" )
2826- if Directory.Exists( facades) then
2827- yield facades
2823+ yield runtimeRoot // The defaut FSharp.Core is found in lib/mono/4.5
2824+ let facades = Path.Combine( runtimeRoot, " Facades" )
2825+ if Directory.Exists( facades) then
2826+ yield facades
28282827 ]
28292828 else
28302829#endif
28312830 try
2831+ [
28322832 match tcConfig.resolutionEnvironment with
28332833#if FX_ MSBUILDRESOLVER_ RUNTIMELIKE
28342834 | MSBuildResolver.RuntimeLike ->
2835- [ System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()]
2835+ yield System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
28362836#endif
28372837 | _ ->
2838- let frameworkRoot = MSBuildResolver.DotNetFrameworkReferenceAssembliesRootDirectoryOnWindows
2839- let frameworkRootVersion = Path.Combine( frameworkRoot, tcConfig.targetFrameworkVersionMajorMinor)
2840- [ frameworkRootVersion]
2838+ let frameworkRoot = MSBuildResolver.DotNetFrameworkReferenceAssembliesRootDirectoryOnWindows
2839+ let frameworkRootVersion = Path.Combine( frameworkRoot, tcConfig.targetFrameworkVersionMajorMinor)
2840+ yield frameworkRootVersion
2841+ let facades = Path.Combine( frameworkRootVersion, " Facades" )
2842+ if Directory.Exists( facades) then
2843+ yield facades
2844+ ]
28412845 with e ->
28422846 errorRecovery e range0; []
28432847
0 commit comments