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

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

    <legend id='MlBqo'><style id='MlBqo'><dir id='MlBqo'><q id='MlBqo'></q></dir></style></legend>

        <tfoot id='MlBqo'></tfoot>

      1. 如何引用“便携式"?来自 Azure 云函数的 .NET 程序集?

        How do I reference a quot;Portablequot; .NET assembly from an Azure Cloud Function?(如何引用“便携式?来自 Azure 云函数的 .NET 程序集?)
        <i id='dje2b'><tr id='dje2b'><dt id='dje2b'><q id='dje2b'><span id='dje2b'><b id='dje2b'><form id='dje2b'><ins id='dje2b'></ins><ul id='dje2b'></ul><sub id='dje2b'></sub></form><legend id='dje2b'></legend><bdo id='dje2b'><pre id='dje2b'><center id='dje2b'></center></pre></bdo></b><th id='dje2b'></th></span></q></dt></tr></i><div id='dje2b'><tfoot id='dje2b'></tfoot><dl id='dje2b'><fieldset id='dje2b'></fieldset></dl></div>
          <tbody id='dje2b'></tbody>

            • <bdo id='dje2b'></bdo><ul id='dje2b'></ul>
                • <small id='dje2b'></small><noframes id='dje2b'>

                  <legend id='dje2b'><style id='dje2b'><dir id='dje2b'><q id='dje2b'></q></dir></style></legend><tfoot id='dje2b'></tfoot>

                  本文介绍了如何引用“便携式"?来自 Azure 云函数的 .NET 程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经通过 Nuget 和 project.json 成功引用了一个可移植"程序集.我所有的代码都在 Azure 函数中编译,但是当它运行时我得到:

                  I've successfully referenced an assembly via Nuget and project.json that is a "Portable" assembly. All my code compiles in the Azure function, but when it's run I get:

                  无法加载文件或程序集System.Net,Version=2.0.5.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e,Retargetable=Yes"或其依赖项之一.系统找不到指定的文件.

                  Could not load file or assembly 'System.Net, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The system cannot find the file specified.

                  据我了解,这是 System.Net 的便携版本,Azure 仅预装了 System.Net 4.6 版本.

                  As I understand it this is the portable version of System.Net, and Azure only preinstalls the 4.6 version of System.Net.

                  我该如何解决这个问题?

                  How do I work around this?

                  推荐答案

                  这是由当前 Azure Functions 主机里程碑上已解决的错误引起的,并将在下一个版本中部署(可能在本周末).您可以在此处找到有关此问题和修复的更多信息:https://github.com/Azure/azure-webjobs-sdk-script/issues/478

                  This is caused by a bug that has been addressed on the current Azure Functions host milestone and will be deployed with the next release (likely towards the end of the week). You can find more information about the issue and the fix here: https://github.com/Azure/azure-webjobs-sdk-script/issues/478

                  与此同时,一种解决方法是将 System.Net 从 Framework 文件夹复制到 bin 文件夹中,该文件夹位于函数文件夹内.宿主会自动将其解析为私有程序集.

                  In the meantime, a workaround would be to copy System.Net from the Framework folder into a bin folder, inside of your function's folder. The host will automatically resolve it as a private assembly.

                  这篇关于如何引用“便携式"?来自 Azure 云函数的 .NET 程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                  • <bdo id='KI1Sd'></bdo><ul id='KI1Sd'></ul>

                            <legend id='KI1Sd'><style id='KI1Sd'><dir id='KI1Sd'><q id='KI1Sd'></q></dir></style></legend>
                              <tbody id='KI1Sd'></tbody>

                          • <small id='KI1Sd'></small><noframes id='KI1Sd'>

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