How to load external F# script file and use it in F# interactive?

后端 未结 3 846
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 12:11

I would like to load one or more .fsx files into the F# interactive and have all the functions defined in the .fsx files in scope so that I can dir

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 13:05

    For running script from a terminal and using it in the interactive mode you can add the next directives:

    #if INTERACTIVE
    #else
    module Script
    #endif
    

提交回复
热议问题