Open bryanhunter opened 3 years ago
This should be helpful: https://fsharp.github.io/FSharp.Compiler.Service/interactive.html There's even an example of reflection on the type of the evaluated expression.
Personally, I couldn't get the sample code to work on my Linux x64 box with dotnet SDK 5.0.6. It fails with some DLL missing. I couldn't install dotnet on my M1 Mac at all.
Research the fsi code: https://github.com/dotnet/fsharp/blob/main/src/fsharp/fsi/fsimain.fs
...and document findings and recommendations.