提交 e52675ac 编写于 作者: K Kevin Ransom (msft) 提交者: Brett V. Forsgren

Pick correct dependencies when scripting on coreclr (#7889)

* Pick correct dependencies when scripting on coreclr

* Look in pack directory for references
上级 5d7cd01e
......@@ -2816,7 +2816,11 @@ type TcConfig private (data: TcConfigBuilder, validate: bool) =
let facades = Path.Combine(frameworkRootVersion, "Facades")
if Directory.Exists facades then
yield facades
]
match frameworkRefsPackDirectory with
| Some path when Directory.Exists(path) ->
yield path
| _ -> ()
]
with e ->
errorRecovery e range0; []
......
......@@ -2209,7 +2209,7 @@ type FsiInteractiveChecker(legacyReferenceResolver,
let backgroundDiagnostics = [| |]
let reduceMemoryUsage = ReduceMemoryFlag.Yes
let assumeDotNetFramework = true
let assumeDotNetFramework = tcConfig.primaryAssembly = PrimaryAssembly.Mscorlib
let applyCompilerOptions tcConfigB =
let fsiCompilerOptions = CompileOptions.GetCoreFsiCompilerOptions tcConfigB
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册