如何使用 Github 操作将 C# 控制台应用部署到 Azure 应用服务

How to deploy a C# Console app to Azure App Service using Github Actions

我正在尝试部署 C# 控制台应用程序。 (将数据从第三方 API 插入到 Azure SQL)使用 Github 操作(推送到 Azure 应用服务),我需要一些选项指导。

我将我的 C# 代码从笔记本电脑中的 Visual Studio 解决方案推送到 Github。

我在 Github 操作中选择了这个选项(“将 .Net Core 应用程序部署到 Azure Web 应用程序”):

这是我得到的结果:

我是不是选错了?

我需要创建 Web 应用程序吗?

我们可以使用 Azure WebJob 将控制台应用程序部署到 Azure 应用服务中。获得关于 WebJob. But the performance of the application is not guaranteed. To deploy using Visual Studio. To deploy the application when the WebJob is already created use the link.

的完整想法

安排 WebJob

要安排 WebJob,请参阅 link.