Hi, looks like FsiEvaluationSession ignores --shadowcopyreferences option.
open System open System.IO open Microsoft.FSharp.Compiler.Interactive.Shell [<EntryPoint>] let main argv = let config = FsiEvaluationSession.GetDefaultConfiguration() let commonOptions = [| "fsi.exe"; "--noninteractive"; "--shadowcopyreferences" |] let sbOut = Text.StringBuilder() let sbErr = Text.StringBuilder() use outStream = new StringWriter(sbOut) use errStream = new StringWriter(sbErr) use stdin = new StreamReader(Stream.Null) let session = FsiEvaluationSession.Create(config, commonOptions, stdin, outStream, errStream) session.EvalScript "script.fsx" 0
script.fsx:
printfn "AppDomain.CurrentDomain.ShadowCopyFiles = %b" System.AppDomain.CurrentDomain.ShadowCopyFiles
Output:
AppDomain.CurrentDomain.ShadowCopyFiles = false
But if I run script.fsx with fsi.exe:
fsi.exe --shadowcopyreferences script.fsx
Output will be:
AppDomain.CurrentDomain.ShadowCopyFiles = true
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4