从 https://dotnet.microsoft.com/en-us/download 安装最新的 .Net 8 版本(当前为 v8.0.3)并将 Visual Studio 更新到 17.9.3(然后重新启动)后,我无法使用 .NET 8 创建一个 Azure 函数项目,因为下拉列表中缺少该条目。
我也更新了Azure功能核心工具(然后重新启动Visual studio) https://github.com/Azure/azure-functions-core-tools?tab=readme-ov-file#installing 但我仍然无法查看它...
经过一些谷歌搜索,我在论坛上找到了答案https://developercommunity.visualstudio.com/t/Net-8-is-missing-for-Azure-Function-proj/10520997
您可以尝试以下步骤来解决此问题:
瞧瞧;)