【发布时间】:2017-01-24 01:48:41
【问题描述】:
基本上,我正在尝试将 Azure 函数创建为预编译函数(如 https://github.com/devkimchi/Testing-Precompiled-Azure-Functions 所述),但我希望 DLL 位于共享位置中。
如果我将自定义 DLL 放入函数本身的目录中,则会加载,否则不会加载。
所以我的测试函数看起来像这样(https://github.com/devkimchi/Testing-Precompiled-Azure-Functions/blob/master/PrecompiledFunctionsApp/HttpTriggerCSharp/function.json):
"scriptFile": "PrecompiledLibraries.dll",
"entryPoint": "PrecompiledLibraries.MyHttpTrigger.Run"
但由于我的程序集实际上位于共享位置,因此我将其更改为:
"scriptFile": "..\SharedLibraries\PrecompiledLibraries.dll", "entryPoint": "PrecompiledLibraries.MyHttpTrigger.Run"
但是,当我在本地运行解决方案并使用 Sysinternals Procmon 观察函数时,我看不到函数应用程序主机来实际查找文件。
指定绝对路径也不起作用。
我需要在这里指定什么?还是这是不受支持的场景?
【问题讨论】:
标签: c# azure azure-functions