I’m sure this must be something really easy, but I can’t seem to make it work. Let’s say I have an .fsx script file and want to cause it to be executed programmatically. I’m guessing someone must have blogged about this at some point, but I can’t seem to find an example that performs my simple scenario. Basically, I want to programmatically duplicate what happens when you right click on an .fsx file and choose “Run with F# Interactive…”
I’m sure this must be something really easy, but I can’t seem to make
Share
As asked in a comment, you can set
UseShellExecuteto false to avoid opening the Windows shell. This way, you can have your output directly in F# shell: