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

Commit0ec9eca

Browse files
committed
Fix 2823 - don't look in mono/4.5-api for F# interactive code
1 parent221dd7e commit0ec9eca

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

‎src/fsharp/CompileOps.fs‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,16 +2816,22 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
28162816
if runningOnMonothen
28172817
[letruntimeRoot= System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
28182818
letruntimeRootWithoutSlash= runtimeRoot.TrimEnd('/','\\')
2819-
letapi= runtimeRootWithoutSlash+"-api"
2820-
yield runtimeRoot// The default FSharp.Core is found in lib/mono/4.5
2821-
if Directory.Exists(api)then
2822-
yield api
2823-
letfacades= Path.Combine(api,"Facades")
2824-
if Directory.Exists(facades)then
2825-
yield facades
2826-
letfacades= Path.Combine(runtimeRoot,"Facades")
2827-
if Directory.Exists(facades)then
2828-
yield facades
2819+
match tcConfig.resolutionEnvironmentwith
2820+
#if!FSI_TODO_NETCORE
2821+
| ReferenceResolver.RuntimeLike->
2822+
yield runtimeRoot
2823+
#endif
2824+
|_->
2825+
letapi= runtimeRootWithoutSlash+"-api"
2826+
yield runtimeRoot// The default FSharp.Core is found in lib/mono/4.5
2827+
if Directory.Exists(api)then
2828+
yield api
2829+
letfacades= Path.Combine(api,"Facades")
2830+
if Directory.Exists(facades)then
2831+
yield facades
2832+
letfacades= Path.Combine(runtimeRoot,"Facades")
2833+
if Directory.Exists(facades)then
2834+
yield facades
28292835
]
28302836
else
28312837
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp