<i id='fr3xI'><tr id='fr3xI'><dt id='fr3xI'><q id='fr3xI'><span id='fr3xI'><b id='fr3xI'><form id='fr3xI'><ins id='fr3xI'></ins><ul id='fr3xI'></ul><sub id='fr3xI'></sub></form><legend id='fr3xI'></legend><bdo id='fr3xI'><pre id='fr3xI'><center id='fr3xI'></center></pre></bdo></b><th id='fr3xI'></th></span></q></dt></tr></i><div id='fr3xI'><tfoot id='fr3xI'></tfoot><dl id='fr3xI'><fieldset id='fr3xI'></fieldset></dl></div>
  • <tfoot id='fr3xI'></tfoot>

    <small id='fr3xI'></small><noframes id='fr3xI'>

      <legend id='fr3xI'><style id='fr3xI'><dir id='fr3xI'><q id='fr3xI'></q></dir></style></legend>
        • <bdo id='fr3xI'></bdo><ul id='fr3xI'></ul>
      1. 将 Azure 函数发布为 NuGet 包(或从外部程序集加载函数)

        Publish Azure Function as NuGet package (or load function from external assembly)(将 Azure 函数发布为 NuGet 包(或从外部程序集加载函数))

        <small id='biUhy'></small><noframes id='biUhy'>

      2. <i id='biUhy'><tr id='biUhy'><dt id='biUhy'><q id='biUhy'><span id='biUhy'><b id='biUhy'><form id='biUhy'><ins id='biUhy'></ins><ul id='biUhy'></ul><sub id='biUhy'></sub></form><legend id='biUhy'></legend><bdo id='biUhy'><pre id='biUhy'><center id='biUhy'></center></pre></bdo></b><th id='biUhy'></th></span></q></dt></tr></i><div id='biUhy'><tfoot id='biUhy'></tfoot><dl id='biUhy'><fieldset id='biUhy'></fieldset></dl></div>

          <tbody id='biUhy'></tbody>
      3. <legend id='biUhy'><style id='biUhy'><dir id='biUhy'><q id='biUhy'></q></dir></style></legend>
          <bdo id='biUhy'></bdo><ul id='biUhy'></ul>

              <tfoot id='biUhy'></tfoot>
                  本文介绍了将 Azure 函数发布为 NuGet 包(或从外部程序集加载函数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在考虑将可重用的 Azure 函数作为 NuGet 包发布,以便在其他项目中轻松使用它.这样我可以在其他项目中引用 NuGet 包.通过这种方式,我可以动态组合一组 Azure Functions 以部署到 Azure Function 服务.

                  I'm looking into publishing a reusable Azure Function as a NuGet package, in order to easily consume it in other projects. This way I can reference the NuGet package in other projects. This way I could dynamically compose a set of Azure Functions to be deployed to an Azure Function service.

                  目前可以吗?或者,可以发挥作用,例如在外部组件中定义,并被拾取";由 Azure Function 主机提供?

                  Is this currently possible? Or, can functions e.g. be defined in an external assembly, and be "picked up" by the Azure Function host?

                  我知道这可以通过 Azure WebJobs 实现,但我还没有找到使用 Azure Functions 实现相同结果的方法.

                  I know this is possible with Azure WebJobs, but I haven't found a way to achieve the same result using Azure Functions.

                  推荐答案

                  .csproj 文件中添加 <FunctionsInDependencies>true</FunctionsInDependencies> 似乎可以做到把戏.

                  Adding <FunctionsInDependencies>true</FunctionsInDependencies> in the .csproj file seems to do the trick.

                  请确保您确实在代码中(例如在 Startup.cs 中)调用了依赖项somewhere,以确保编译器不会优化程序集.

                  Do make sure you actually call the dependency somewhere in the code (e.g. in Startup.cs) to make sure the assembly isn't optimized away by the compiler.

                  这篇关于将 Azure 函数发布为 NuGet 包(或从外部程序集加载函数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                1. <tfoot id='mDx5I'></tfoot>
                    <tbody id='mDx5I'></tbody>

                    <i id='mDx5I'><tr id='mDx5I'><dt id='mDx5I'><q id='mDx5I'><span id='mDx5I'><b id='mDx5I'><form id='mDx5I'><ins id='mDx5I'></ins><ul id='mDx5I'></ul><sub id='mDx5I'></sub></form><legend id='mDx5I'></legend><bdo id='mDx5I'><pre id='mDx5I'><center id='mDx5I'></center></pre></bdo></b><th id='mDx5I'></th></span></q></dt></tr></i><div id='mDx5I'><tfoot id='mDx5I'></tfoot><dl id='mDx5I'><fieldset id='mDx5I'></fieldset></dl></div>

                    <small id='mDx5I'></small><noframes id='mDx5I'>

                        <bdo id='mDx5I'></bdo><ul id='mDx5I'></ul>
                        <legend id='mDx5I'><style id='mDx5I'><dir id='mDx5I'><q id='mDx5I'></q></dir></style></legend>