爲什麼不#load工作#load無法加載共享.fsx
我已經試過了在同一文件夾,並在相對的文件夾,如下
我缺少什麼?
run.fsx是
#load "../shared/shared.fsx"
let key = "MyKey"
let Run(message: string, log: TraceWriter, result: byref<string>) =
result <- doItAll message key
log.Info(sprintf "F# results: %s" result)
shared.fsx是
let doItAll message key = key + " has handled " + message
誤差
run.fsx(x,y): error FS39: The value or constructor 'doItAll' is not defined
注 - 確保你已經編輯了host.json設置 { \t「watchDirectories」:「共享」,「共享FS」] } –