diff --git a/src/FSharpSource.targets b/src/FSharpSource.targets index aaa2e141077..596d381bd7e 100644 --- a/src/FSharpSource.targets +++ b/src/FSharpSource.targets @@ -121,7 +121,6 @@ $(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE; $(DefineConstants);FX_ATLEAST_LINQ $(DefineConstants);ENABLE_MONO_SUPPORT - $(DefineConstants);FX_MSBUILDRESOLVER_RUNTIMELIKE $(DefineConstants);FX_LCIDFROMCODEPAGE $(DefineConstants);FX_RESX_RESOURCE_READER $(DefineConstants);FX_RESIDENT_COMPILER diff --git a/src/fsharp/CompileOps.fs b/src/fsharp/CompileOps.fs index 4858286e0bd..d6c33b1405a 100644 --- a/src/fsharp/CompileOps.fs +++ b/src/fsharp/CompileOps.fs @@ -2811,7 +2811,9 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) = #endif try match tcConfig.resolutionEnvironment with -#if FX_MSBUILDRESOLVER_RUNTIMELIKE +#if TODO_REWORK_ASSEMBLY_LOAD + // "RuntimeLike" assembly resolution for F# Interactive is not yet properly figured out on .NET Core +#else | ReferenceResolver.RuntimeLike -> [System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()] #endif @@ -4854,10 +4856,11 @@ module private ScriptPreprocessClosure = tcConfigB.resolutionEnvironment <- match codeContext with | CodeContext.Editing -> ReferenceResolver.DesignTimeLike -#if FX_MSBUILDRESOLVER_RUNTIMELIKE - | CodeContext.Compilation | CodeContext.Evaluation -> ReferenceResolver.RuntimeLike -#else +#if TODO_REWORK_ASSEMBLY_LOAD + // "RuntimeLike" assembly resolution for F# Interactive is not yet properly figured out on .NET Core | CodeContext.Compilation | CodeContext.Evaluation -> ReferenceResolver.CompileTimeLike +#else + | CodeContext.Compilation | CodeContext.Evaluation -> ReferenceResolver.RuntimeLike #endif tcConfigB.framework <- false // Indicates that there are some references not in BasicReferencesForScriptLoadClosure which should diff --git a/src/fsharp/fsi/fsi.fs b/src/fsharp/fsi/fsi.fs index 7bf1925331d..817ba00fb63 100644 --- a/src/fsharp/fsi/fsi.fs +++ b/src/fsharp/fsi/fsi.fs @@ -2217,10 +2217,11 @@ type internal FsiEvaluationSession (argv:string[], inReader:TextReader, outWrite Directory.GetCurrentDirectory(),isInteractive=true, isInvalidationSupported=false) let tcConfigP = TcConfigProvider.BasedOnMutableBuilder(tcConfigB) -#if FX_MSBUILDRESOLVER_RUNTIMELIKE - do tcConfigB.resolutionEnvironment <- ReferenceResolver.RuntimeLike // See Bug 3608 -#else +#if TODO_REWORK_ASSEMBLY_LOAD + // "RuntimeLike" assembly resolution for F# Interactive is not yet properly figured out on .NET Core do tcConfigB.resolutionEnvironment <- ReferenceResolver.DesignTimeLike +#else + do tcConfigB.resolutionEnvironment <- ReferenceResolver.RuntimeLike // See Bug 3608 #endif do tcConfigB.useFsiAuxLib <- true