【发布时间】:2022-01-22 05:18:05
【问题描述】:
我正在尝试将现有的 .net 5 dotnet-isolated 函数迁移到 .net 6。它已部署到 Azure。我更新了所有 NuGet 包并将FUNCTIONS_EXTENSION_VERSION 设置为~4。如前所述,它在 dotnet-isolated FUNCTIONS_WORKER_RUNTIME 设置中的 .net 5 上运行良好,现在仍然存在。
它在 Visual Studio 2022 中运行良好,但在部署到 Azure 时,没有加载和执行任何函数。 Functions 应用程序已启动并正在运行。使用 Kudu 调试控制台,我得到:
2021-12-20T15:25:11.703 [Information] Loading functions metadata
2021-12-20T15:25:11.704 [Information] 0 functions loaded
2021-12-20T15:25:11.705 [Information] Loading functions metadata
2021-12-20T15:25:11.705 [Information] 0 functions loaded
2021-12-20T15:25:26.229 [Information] Host Status: {
"id": "testname",
"state": "Running",
"version": "4.0.1.16815",
"versionDetails": "4.0.1+d22b332c30efafeed1e4898c9b92280697138194",
"platformVersion": "96.0.7.599",
"instanceId": "25d4009bce1d0f8d31e51726fdcef27cc4654e363649d28127051edda8891d94",
"computerName": "10-30-6-202",
"processUptime": 51200
}
Azure 是否已经支持带有 dotnet-isolated 和 .net 6 的函数?我还可以检查什么来找出为什么没有找到并执行函数?
【问题讨论】: