【发布时间】:2022-06-21 12:53:25
【问题描述】:
我正在尝试在 Visual Studio Code 中创建 Azure Durable Function,但由于缺少函数模板而失败。
在 Visual Studio Code 中创建 Azure Function 项目时,有多种选择和安装扩展:
- 语言
- .NET 运行时
- Azure Functions 版本
- Visual Studio Code Azure Functions 扩展(我有最新的)
- Azure Functions 核心工具(我有最新的)
- Durable Functions 显然也有a version
我尝试在运行时使用最新最好的:
- C#、.NET 6 隔离、Azure Functions v4
虽然the docs say it should be there:
现在选择较旧版本时(.net core 2,azure函数v2):
出现“Durable Functions Orchestration”模板:
我试图在 Azure Functions 和 Durable Functions 的官方文档中找到有关此的信息,但没有发现任何有用的信息。不同工具的版本历史都有不同的配置选项,以及导致工具失败的错误历史。
我尝试了不同的组合。在linked sample 中为函数运行时选择 v3 不适用于 .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 中的模板?
感谢任何提示。
【问题讨论】:
标签: azure visual-studio-code azure-functions azure-durable-functions