使用 VS Code,如何向目标框架 5.0 的函数应用程序添加持久函数

Using VS Code, how can I add a durable function to a function app with target framework 5.0

我有一个现有的函数应用程序,我一直在尝试使用 VS Code 和 .NET 5。我安装了最新的 Azure Functions 扩展。当我执行 Azure Functions: create function 时,我看不到 Durable Orchestration Function。但是,如果我使用 .NET 3.1 创建另一个函数应用程序并执行 create function,我会看到 Durable 模板。任何帮助表示赞赏。谢谢

现在不支持“.net 5”的 azure 持久函数。

查看此公告:

While the .NET isolated model supports most Azure Functions triggers and bindings, Durable Functions and rich types support are currently unavailable.

公告称暂时没有计划在这方面提供支持,可能要到2022年才开始逐步实现。所以如果要使用持久化功能,还是需要基于 .Net Core 3.1.