Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9eb89c

Browse files
authored
For FSI on coreclr use ResolutionEnvironment.CompilationAndEvaluation just like on desktop (#3963)
1 parenta9d822a commitc9eb89c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

‎src/fsharp/CompileOps.fs‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5071,13 +5071,7 @@ module private ScriptPreprocessClosure =
50715071
match codeContextwith
50725072
| CodeContext.Editing-> ResolutionEnvironment.EditingOrCompilationtrue
50735073
| CodeContext.Compilation-> ResolutionEnvironment.EditingOrCompilationfalse
5074-
| CodeContext.CompilationAndEvaluation->
5075-
#if FSI_TODO_NETCORE
5076-
// "CompilationAndEvaluation" assembly resolution for F# Interactive is not yet properly figured out on .NET Core
5077-
ResolutionEnvironment.EditingOrCompilationfalse
5078-
#else
5079-
ResolutionEnvironment.CompilationAndEvaluation
5080-
#endif
5074+
| CodeContext.CompilationAndEvaluation-> ResolutionEnvironment.CompilationAndEvaluation
50815075
tcConfigB.framework<-false
50825076
tcConfigB.useSimpleResolution<- useSimpleResolution
50835077
// Indicates that there are some references not in BasicReferencesForScriptLoadClosure which should

‎src/fsharp/fsi/fsi.fs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,8 +2464,6 @@ type FsiEvaluationSession (fsi: FsiEvaluationSessionHostConfig, argv:string[], i
24642464
do tcConfigB.useFsiAuxLib<- fsi.UseFsiAuxLib
24652465

24662466
#if FSI_TODO_NETCORE
2467-
// "CompilationAndEvaluation" assembly resolution for F# Interactive is not yet properly figured out on .NET Core
2468-
do tcConfigB.resolutionEnvironment<- ResolutionEnvironment.EditingOrCompilationfalse
24692467
do tcConfigB.useSimpleResolution<-true
24702468
do SetTargetProfile tcConfigB"netcore"// always assume System.Runtime codegen
24712469
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp