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

    <tfoot id='dWwpn'></tfoot>

      <bdo id='dWwpn'></bdo><ul id='dWwpn'></ul>

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

        使用预编译的 Azure 函数库生成错误

        Build Error with pre-compiled Azure Function Library(使用预编译的 Azure 函数库生成错误)

        <small id='4HNQF'></small><noframes id='4HNQF'>

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

                  <bdo id='4HNQF'></bdo><ul id='4HNQF'></ul>
                • 本文介绍了使用预编译的 Azure 函数库生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  最近,我使用 *.csx) 的 Azure 函数转换为预编译的类库.com/webdev/2017/05/10/azure-function-tools-for-visual-studio-2017/" rel="nofollow noreferrer">适用于 Azure Functions 的 Visual Studio Studio 工具.它在 Visual Studio 2017 中成功构建(以及运行和调试).

                  Recently, I converted an Azure Function that used a C# script (*.csx) to a pre-complied class library using the Visual Studio Studio Tools for Azure Functions. It builds successfully in Visual Studio 2017 (as well as running and debugging too).

                  我想通过我们的 CI 流程构建这个 AF 库.但是,当我在本地运行命令 dotnet build 时,它会失败并出现以下错误:

                  I'd like to build this AF library via our CI process. However, when I run the command dotnet build locally it fails with the following error:

                  C:Users ay.nugetpackagesmicrosoft.net.sdk.functions1.0.2uild etstandard1.0Microsoft.NET.Sdk.Functions.Build.targets(31,5):错误:无法加载文件或程序集Microsoft.Azure.WebJobs.Host,版本=2.1.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35".该系统找不到指定的文件.

                  C:Users ay.nugetpackagesmicrosoft.net.sdk.functions1.0.2uild etstandard1.0Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.Azure.WebJobs.Host, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

                  同样的错误也发生在我们的 CI 构建中.

                  The same error also occurs in our CI build.

                  不确定为什么会发生此错误以及如何解决它.它是 dotnet CLI 的版本(我使用的是 v1.1)吗?是别的吗?

                  Not sure why this error is occurring and how to resolve it. Is it the version of the dotnet CLI (I'm using v1.1)? Is it something else?

                  推荐答案

                  UPDATE 2018-01-08

                  根据@theGRS https://stackoverflow.com/a/48156446/621827 的新回答,这有已解决.

                  According to a new answer by @theGRS https://stackoverflow.com/a/48156446/621827 this has been resolved.

                  上一个答案

                  这是我找到的.

                  dotnet msbuild 使用 Microsoft.NET.Sdk.Functions .NETStandard 1.5 库,如果您查看 NuGet 它不使用 Microsoft.Azure.WebJobs

                  dotnet msbuild uses the Microsoft.NET.Sdk.Functions .NETStandard 1.5 library which if you look at the dependencies on NuGet it doesn't use Microsoft.Azure.WebJobs

                  但如果您使用 Visual Studio 2017 msbuild,它将使用库的 .NETFramework 4.6 版本,其中包括 Microsoft.Azure.WebJobs.

                  But if you use the Visual Studio 2017 msbuild it will use the .NETFramework 4.6 version of the library which includes Microsoft.Azure.WebJobs.

                  我的建议是现在使用 MSBuild.

                  My suggestion is to use MSBuild for now.

                  这篇关于使用预编译的 Azure 函数库生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                  Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                  Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                  How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                  how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                  JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)

                    <tfoot id='9srQi'></tfoot>

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

                          <small id='9srQi'></small><noframes id='9srQi'>