0

我下载了在门户中创建的 Azure 函数的代码。现在我尝试在第一行使用在主文件(run.csx)中加载一个类:

#load "..\shared\data.csx"

但我得到了错误:

 "run.csx(1,7): error CS1504: Source file '..\shared\data.csx' could not be opened -- Could not find file."

我在host.json中添加:

"watchDirectories": [ "Shared" ]

我尝试使用大写,小写,将类放在 run.csx 的同一文件夹中,但它不起作用。我想念什么?

4

1 回答 1

1

仔细检查您的“共享”文件夹是否位于D:\home\site\wwwroot\Shared. 请注意,函数应用的根目录位于D:\home\site\wwwroot.

于 2018-08-07T00:04:58.360 回答