简体   繁体   English

Azure Function App无法在需要.NET Framework 4.7.1的Visual Studio 2017上运行

[英]Azure Function App won't run on Visual studio 2017 Requiring .NET Framework 4.7.1

I had my Azure function running by yesterday but after updating windows to Version 17755.1 the app fails to run with n error requesting .NET Framework version 4.7.1 to be installed. 我的Azure函数在昨天运行,但是将Windows更新到版本17755.1后,该应用程序无法运行,并出现n错误,要求安装.NET Framework 4.7.1版。 I have counterchecked on my pc and actually the .NET Framework version 4.7.1 is installed. 我已经在我的PC上进行了复核,并实际上安装了.NET Framework 4.7.1版。 I tried to install the it from here but it won't install. 我尝试从此处安装它但无法安装。

运行应用时出错

尝试安装.net框架时出错

That build of Windows appears to have a general issue running any .NET app that targets 4.7.1. 运行任何以4.7.1为目标的.NET应用程序时,该Windows版本似乎存在一般问题。

Here is a workaround: 这是一种解决方法:

  • Go to %LOCALAPPDATA%\\AzureFunctionsTools\\Releases\\[cliversion]\\cli 转到%LOCALAPPDATA%\\AzureFunctionsTools\\Releases\\[cliversion]\\cli
  • Edit func.exe.Config 编辑func.exe.Config
  • Change the supportedRuntime tag to target 4.7.2 instead of 4.7.1 将supportedRuntime标记更改为目标4.7.2而不是4.7.1

     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2017 - 无法创建Azure功能应用程序 - Visual Studio 2017 - can't create an Azure Function app Visual Studio 2017 安装程序在解压后无法运行 - Visual studio 2017 installer won't run after extracting Microsoft Visual Studio 2017安装程序项目启动条件检查不适用于.net 4.7.1 - Microsoft Visual Studio 2017 Installer Projects launch condition check not work for .net 4.7.1 Visual Studio 2017 .NET Framework 4.5.2 - Visual Studio 2017 .NET Framework 4.5.2 Is.Net Framework 4.8 与 Visual Studio 2017 兼容 - Is .Net Framework 4.8 compatible with Visual Studio 2017 .net应用程序无法在开发人员计算机上运行,​​但可以在Visual Studio上运行 - .net application won't run on developer machine but works on visual studio iOS Visual Studio Cordova 应用程序构建但不会自动运行 - iOS Visual Studio Cordova app build but won't automatically run 使用Visual Studio 2017在Azure应用服务中发布ASP.NET应用程序后获取HTTP错误404 - Getting HTTP ERROR 404 after publishing ASP.NET application in Azure App Service with Visual Studio 2017 Visual Studio Community 2017无法定位.net Framework 4.0,未在目标页面上列出 - Visual Studio Community 2017 can't target .net framework 4.0, not listed on target page 使用 Visual Studio 2017 以 .NET Framework 2.0(不是 .NET Core 2.0)为目标 - Target .NET Framework 2.0 (not .NET Core 2.0) with Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM