我下载了在门户中创建的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的相同文件夹中,但不起作用。我错过了什么吗?
发布于 2018-08-07 08:04:58
仔细检查您的“共享”文件夹是否在D:\home\site\wwwroot\Shared
下。请注意,您的函数应用程序的根目录是D:\home\site\wwwroot
。
https://stackoverflow.com/questions/51704048
复制相似问题