azure - .NET Core 5 的发布配置文件未显示在 Azure 中

标签 azure asp.net-core-webapi

我有一个 .NET Core 5 应用程序,我正在尝试在 Azure 中创建一个 Web 应用程序。我无法在此处看到 .NET Core 5 版本的发布。

请查看此屏幕截图:

enter image description here

最佳答案

感谢@marc_s 的评论。

Visual Studio 中,您可以看到它清楚地表明:.NET 5.0 不再支持

enter image description here

如果您已经在 .NET 5 中开发了应用程序,并且仍想部署该应用程序,则可以继续。

enter image description here

当您部署应用程序时,运行时堆栈被视为.NET 5,并建议您更新版本。

从 Visual Studio 部署时:

enter image description here

您现在可以看到 .NET 5 选项。

enter image description here

而如果您从 Azure 门户创建 App Service ,则无法看到 .Net 5 选项(就像您现在在案例中看到的那样)。

来自 Azure 门户中的 Azure 应用服务:

enter image description here

关于azure - .NET Core 5 的发布配置文件未显示在 Azure 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76031648/

相关文章:

windows - Blob容器创建异常

azure - 需要建议使用 lucene.net 创建索引和搜索

javascript - 使用 Ajax 从 Web api 获取二进制数组时,没有从文本到数组缓冲区的转换

c# - 关于 MVC Controller 与独立 Web API 的架构,有多少个项目?

c# - 在 ASP.NET Core WebAPI 中实现 JSON 合并补丁

c# - 在 asp.net 核心端点上读取 Csv

c# - 如何在 C# Windows 应用程序中使用 azure 命令调用 PowerShell 脚本

azure - 如何在 Azure AKS 上的一个入口 Controller 上创建多个负载均衡器 IP 地址

azure - 在没有队列的情况下运行 Azure WebJob

c# - 如何使用商店证书为 NET Core 2.1 正确设置 HTTPS