This is part of the Fake.DotNet.Fsi module.

Fsi

Nested types and modules

TypeDescription
DebugTypes

Specify debugging type: full, portable, embedded, pdbonly. ('pdbonly' is the default if no debuggging type specified and enables attaching a debugger to a running program, 'portable' is a cross-platform format, 'embedded' is a cross-platform format embedded into the output file).

FsiParams
FsiTool
Profile

Specify target framework profile of this assembly. Valid values are mscorlib, netcore or netstandard. Default - mscorlib

Functions and values

Function or valueDescription
Fsi.exec fsiParams script scriptArgs
Signature: fsiParams:(FsiParams -> FsiParams) -> script:string -> scriptArgs:string list -> int * string list

Executes the internal fsi within FSC on the given script Returns error code and an exception message if any exceptions were thrown

Sample

e.g: Passing some arguments to fsi, along with the script and some args to be passed to the script

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
let fsiExe = "path/to/fsi.exe"
let script = "MyScript.fsx"
let (exitcode,msgs) =
    Fsi.exec (fun p -> 
        { p with 
            TargetProfile = Fsi.Profile.NetStandard
            WorkingDirectory = "path/to/WorkingDir"
            ToolPath = FsiTool.External fsiExe
        }
        |> Process.setEnvironmentVariable "SOME_VAR" "55"
        |> Process.setEnvironmentVariable "GIT" "path/to/git") script ["stuff";"10"]
```
val fsiExe : string
val script : string
val exitcode : obj
val msgs : obj