System.Runtime 4.2.1.0构建v2 Azure Functions项目的FileNotFoundException [英] FileNotFoundException for System.Runtime 4.2.1.0 building v2 Azure Functions Project

查看:645
本文介绍了System.Runtime 4.2.1.0构建v2 Azure Functions项目的FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将此内容发布在

I posted this on Stack Overflow as well, but since I didn't get a response there yet I figured I'd try over here.

I'm getting an error when I try to build an Azure Functions v2 project. The odd thing is that it doesn't always happen. I've tried various combinations of Visual Studio 2017 (15.9.3) and Visual Studio 2019 (Preview 1.1), as well as building in Azure DevOps on the Hosted 2017 agent, along with changing the Functions SDK between 1.0.22, 1.0.23 and 1.0.24.

推荐答案

蒂姆,你好

我还发现已经报告了这个(相同)问题: FileNotFoundException(系统.在T4模板中反映时运行时,版本= 4.2.1.0)

I have also found that this (same) issue has been reported: FileNotFoundException (System.Runtime, Version=4.2.1.0) when reflecting in T4 template

此外,在查看 Microsoft.NET.Sdk.Functions的依赖项时1.0.24 ,NuGet Gallery提供以下指导:

Also, in looking at the dependencies for Microsoft.NET.Sdk.Functions 1.0.24, NuGet Gallery is providing the following guidance:

.NETFramework 4.6
Microsoft.Azure.WebJobs(> = 2.2.0&&< 2.4.0)
Microsoft.Azure.WebJobs.Extensions(> = 2.2.0&< 2.4.0)
Microsoft.Azure.WebJobs.Extensions.Http(> = 1.1.0&< 1.3.0)
Newtonsoft.Json(= 9.0.1)
System.ValueTuple(> = 4.3.0)

.NETFramework 4.6
Microsoft.Azure.WebJobs (>= 2.2.0 && < 2.4.0)
Microsoft.Azure.WebJobs.Extensions (>= 2.2.0 && < 2.4.0)
Microsoft.Azure.WebJobs.Extensions.Http (>= 1.1.0 && < 1.3.0)
Newtonsoft.Json (= 9.0.1)
System.ValueTuple (>= 4.3.0)

您可以安装相同的依赖项,然后查看获得的内容.此外,您是否有 Azure支持计划?如果没有,我可以创建一张一次性事件票证,以通过支持请求正式跟踪此问题.请将您的Azure订阅GUID发送到 Microsoft.com上的AzCommunity和说明将发回以进行下一步.

You could install the same dependencies and see what you get. Additionally, do you have an Azure Support Plan? If not, I can have a one-time incident ticket created to have this issue officially tracked via a support request. Please send your Azure Subscription GUID to AzCommunity at Microsoft.com and instructions will be sent back for next steps.

谢谢,迈克


这篇关于System.Runtime 4.2.1.0构建v2 Azure Functions项目的FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆