Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure函数预编译多函数-同一dll_Azure_Azure Functions - Fatal编程技术网

Azure函数预编译多函数-同一dll

Azure函数预编译多函数-同一dll,azure,azure-functions,Azure,Azure Functions,我跟随这篇博文创建了一个预编译的azure函数。 是否可以在同一项目/同一dll中创建多个函数 谢谢是的 您需要在项目根目录下添加一个新文件夹,其中包含function.json 然后,在function.json中,将scriptFile设置为dll,并将entryPoint设置为要用作第二个函数的方法 { "scriptFile": "..\\bin\\SomeDll.dll", "entryPoint": "FunctionsLibraryProject.HelloHttpTri

我跟随这篇博文创建了一个预编译的azure函数。

是否可以在同一项目/同一dll中创建多个函数

谢谢

是的

您需要在项目根目录下添加一个新文件夹,其中包含
function.json

然后,在
function.json中,将
scriptFile
设置为dll,并将
entryPoint
设置为要用作第二个函数的方法

{
  "scriptFile": "..\\bin\\SomeDll.dll",
  "entryPoint": "FunctionsLibraryProject.HelloHttpTrigger.SecondRunMethod",
  ...
}

我们如何使用VS 2017预编译函数来实现这一点,因为我们现在无法添加函数。json manuallyPrecompiled functions,iirc应该完全按照您的要求执行-将一个项目中的所有函数打包到单个dll中,并自动生成上述
function.json
属性