azure - Azure Durable Functions 是否支持 .NET 6 和 Azure Functions 版本 4?

标签 azure visual-studio-code azure-functions azure-durable-functions

我正在尝试创建一个 Azure Durable Function在 Visual Studio Code 中,由于缺少函数模板而失败。

在 Visual Studio Code 中创建 Azure Function 项目时,需要做出多种选择并安装扩展:

  • 语言
  • .NET 运行时
  • Azure Functions 版本
  • Visual Studio Code Azure Functions 扩展(我有最新的)
  • Azure Functions 核心工具(我有最新的)
  • 耐用功能显然也有 a version

我尝试使用最新最好的运行时:

  • C#、.NET 6 隔离、Azure Functions v4

enter image description here

但是没有可用于耐用功能的模板,尽管 the docs say it should be there :

enter image description here

现在,当选择旧版本时(.NET Core 2、Azure Functions v2):

enter image description here

出现模板“Durable Functions Orchestration”:

enter image description here

我尝试在 Azure Functions 和 Durable Functions 的官方文档中查找相关信息,但没有找到任何有用的信息。不同工具都有不同的版本历史记录,所有工具都具有不同的配置选项,并且存在导致工具失败的错误历史记录。

我尝试了不同的组合。为函数运行时选择 v3,如 linked sample 中所示不适用于 .NET 5,因为模板仍然丢失。在 .NET Core 3 中,模板就会出现。

现在我想知道:“Durable Functions Orchestration”模板选项是否也可以在较新的运行时堆栈(.NET 6、Functions v4)中使用?或者我必须使用旧版本(例如 .NET Core 2、Functions v2 或 .NET Core 3、Functions v3)是否正确?或者这甚至是一个工具问题,我应该手动构建我的 Durable Function 代码,而不是使用 VS Code 中的模板?

任何提示表示赞赏。

最佳答案

您必须选择“.NET 6”而不是“.NET 6isolated”。

编辑:现在普遍提供对隔离工作人员的支持。 https://azure.microsoft.com/en-us/updates/generally-available-durable-functions-support-for-net-isolated-model/ 。这包括对 .NET 6 及更高版本的支持。您现在应该能够看到这些模板。

关于azure - Azure Durable Functions 是否支持 .NET 6 和 Azure Functions 版本 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70998756/

相关文章:

.net - 如何使用 Dapr 订阅 Azure 应用程序配置中的更改

Azure CLI - 如何使用特定的 "Description"创建新的客户端 key

javascript - ADAL.js 无法在 Microsoft 个人帐户中运行

google-chrome - 如何从 Visual Studio 代码启动 Chrome?

c++ - preLaunchTask 和 launch 可以在 VSCode 的同一个终端内启动吗?

azure - 具有针对不同环境和插槽的许多appSettings的Azure功能的ARM模板

asp.net - Azure:从网站访问 RoleEnvironment

visual-studio-code - VSCode-是否可以自定义双击选择行为?

node.js - 将 JSON 消息发送到 Azure 队列存储

c# - Azure SignalRTrigger 无法与 Azure Functions 一起使用