Linux 上的 Azure Functions v4 .Net 6 问题

标签 azure azure-functions .net-6.0 azure-appservice azure-linux

我创建了一个带有应用服务计划的新功能应用。它基于带有 .NET6 的 Linux,请参阅 here .

创建后,Function 运行时版本为 4,常规设置页面上的 Stack 和 .NET 版本是正确的(.NET 6)。 Function Runtime version , NET version

当使用“dotnet --version”命令连接(高级工具/Bash)到应用程序以检查 .Net 版本时,我将恢复 .NET 版本 3.141.5。 Azure app service plan bash .

为什么我在配置中选择的是 .Net3.1 而不是 .Net6?

我还创建了一个基于 Windows OS+.Net6 的类似设置,通过此配置我得到了 .Net6。

最佳答案

函数 V4 需要 .net 6 版本。

enter image description here

单击“下载自动化模板”。 enter image description here

enter image description here

enter image description here

它的运行时版本是4.8.0,点击JSON查看链接。 enter image description here

这里显示的是 .Net 版本 6。 enter image description here

更多信息请阅读此documents作者:德米利亚尼

关于Linux 上的 Azure Functions v4 .Net 6 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73291119/

相关文章:

python-3.x - 我的 Python V2 Azure Function 未显示在我的 Azure 门户中

java - Azure函数无法找到具有给定输入的方法签名

c# - 菜单项突出显示时发生的事件

azure - 如何使用 Graph API 将组或用户添加到 Azure 中的企业应用程序?

c# - Azure Function 启动的配置未被调用

c# - 如何使用 .NET 6 的新最小托管模型在集成测试中使 Serilog 静音

c# - C# 中的 Async 和 Await 未正确理解

运行旧文件的 Azure Web App (Linux) 与 ACR artefact 进行比较

azure - Windows Azure + SQL - 爱好者网站

c# - Azure 中的 ASP.NET MVC Core 应用程序