使用 .NET Core 3.1 库的 .NET 6 Azure 函数

.NET 6 Azure functions using .NET Core 3.1 libraries

目前是否可以为必须使用 .NET Core 3.1 Nugets 的 .NET 6 Azure 函数获取 Azure 构建 运行。我今天花了很长时间调整 YAML 文件并添加参考,但运气不佳。出现的问题是有关 missmatcking 库的消息,这些库仅由 Nugets 使用。添加这些后,发布失败。

“Dotnet 命令失败,退出代码非零...”

虽然更改为 .NET Core 3.1 工作正常。

根据Microsoft Community doc

.NET 6 functions will support both in-process and isolated process options. The in-process option will support the full feature set available in .NET Core 3.1 functions today, including Durable Functions and rich binding types. The isolated process option will provide an upgrade path for apps using this option for .NET 5 and initially will have the same feature set and limitations.

And .NET 6 LTS reaches general availability in November 2021, Then you’ll be able to deploy and run .NET 6 Azure Functions.