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

发布于 2025-02-03 06:25:09 字数 583 浏览 4 评论 0 原文

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

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

我选择了此选项(“ Deploy .NET Core App到Azure Web应用程序”)在GitHub Action:

这是我得到的结果:

我是否在这里选择了错误的选项?

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

I am trying to deploy a C# Console app. (which inserts data from a third party API to Azure SQL) using Github Actions (push to Azure App Service), and I need some guidance for an option.

I pushed my C# code into Github from my Visual Studio solution in my laptop.

I chose this option ("Deploy .Net Core app to an Azure Web App") at Github Actions:
enter image description here

This is result that I got:
enter image description here

Did I choose wrong option here?

Do I need to create a Web App?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟酒忠诚 2025-02-10 06:25:10

我们可以使用Azure WebJob将控制台应用程序部署到Azure应用程序服务中。要在 。在已经创建WebJob时部署应用程序,请使用 link

安排WebJob

安排WebJob参考 link。

We can deploy the console application into Azure app service using an Azure WebJob. To get complete idea on 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.

To schedule a WebJob

To schedule the WebJob refer the link.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文