本文介绍了Azure应用服务无法定位到5.0.100 HTTP错误500.31-ANCM无法找到本机依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

未找到Microsoft.NetCore.App或Microsoft.AspNetCore.App的指定版本."

"The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found."

我读过的所有内容都使我相信.NET 5已准备好用于应用程序服务.因此,我进行了必要的更改并合并了我的代码.构建(管道)找到了.该版本将其发布到App Service.但是由于某些原因,带有App服务的计算机未安装.NET 5.我的问题是,我是否认为Azure托管.NET 5应用程序是错误的?如果有可能,那我该怎么办?

Everything I've read led me to believe that .NET 5 is ready to be used for an app service. So I made the necessary changes and merged my code. The build (pipeline) went find. The release made it to the App Service. But for some reason the machine with the App service does not have .NET 5 installed. My question is, am I wrong in assuming that Azure is raeady to host .NET 5 applications. If it is possible, then how do I do this?

推荐答案

App Service不支持.NET 5,但配置页面上的字词令人困惑.您需要将应用程序服务设置为使用".NET"而不是".NET Core".请按照下列步骤操作:

App Service DOES support .NET 5, but the verbiage on the config page is confusing. You need to set the app service to use '.NET' instead of '.NET Core'. Follow these steps:

转到Azure中的App Service

Go to the App Service in Azure

  • 在设置"下,单击配置"
  • 然后点击常规设置"
  • 将堆栈"从".NET Core"更改为".NET"
  • 将".NET Framework版本"设置为".NET 5(早期访问)"
  • 保存

我不确定为什么他们将.NET 5放在.NET Framework下拉菜单下,或者为什么仍将其标记为早期访问".但这有望使您重新启动并运行.

I'm not sure why they put .NET 5 under the .NET Framework dropdown or why it's still labeled "early access" but this should hopefully get you up and running again.

这篇关于Azure应用服务无法定位到5.0.100 HTTP错误500.31-ANCM无法找到本机依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 21:28