Azure Service Fabric + VS 2022 + .NET 7

问题描述 投票:0回答:1

我想创建与 .NET 7 一起使用的 Azure Service Fabric 应用程序。据我从 https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-versions 最新版本的了解最高支持 .NET 7。 我正在使用 Visual Studio Professional 2022 (v. 17.8.0) 并安装:

  • Azure Service Fabric SDK 7.0.1949.9590
  • Azure Service Fabric 运行时 10.0.1949.9590

在VS中创建新项目(文件>新建>项目)并选择Service Fabric Application时,最新的框架选项是.NET Framework 4.8(如下图)

我遵循了官方文章https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started,但它提到了 VS 2017 和 2019。还有什么我需要的吗Azure Service Fabric 模板支持 .NET 7 吗?

感谢您的任何提示!

c# azure visual-studio-2022 azure-service-fabric
1个回答
0
投票

最新的框架选项是.NET Framework 4.8

在 Visual Studio 安装程序中,单击“修改”选项以检查运行时版本。

enter image description here

  • 安装所需的核心版本。

enter image description here

  • 是的,当您检查 Service Fabric 应用程序时,在第一个模板中它仅显示框架版本。

  • 选择任意一个框架,然后单击.NET Core下的任意服务。

enter image description here

  • 单击
    Create
    ,在这里您将获得一个选项来选择 .NET Core 版本以及模板。

enter image description here

  • 您还可以在Web App的
    .csproj
    文件中查看CORE的版本。

enter image description here

请参阅 Mike Rousos 的博客了解更多详细信息。

© www.soinside.com 2019 - 2024. All rights reserved.