简体   繁体   English

是否可以通过Visual Studio在Linux服务计划上将ASP.NET Core应用发布到Azure AppService中?

[英]Can I publish a ASP.NET Core app into an Azure AppService on a Linux Service Plan from Visual Studio?

I just need to deploy a aspnet core app into a Linux Service Plan. 我只需要将aspnet核心应用程序部署到Linux服务计划中。 I tried pre-creating the Linux service plan (into it's own Resource Group) from portal, and then starting the publish profile creating process in VS, but it does not show the linux Resource Group or Service Plan. 我尝试从门户网站预先创建Linux服务计划(到它自己的资源组中),然后在VS中启动发布配置文件创建过程,但是它没有显示Linux资源组或服务计划。 I can only find references to doing this from a Linux machine using Git-integration. 我只能在使用Git集成的Linux机器上找到有关这样做的参考。

Thanks in advance, 提前致谢,

Jose Parra 何塞·帕拉

Unfortunately, for now we cannot deploy web app to Azure linux service plan through VS. 不幸的是,目前我们无法通过VS将Web应用程序部署到Azure linux服务计划。 It's by design that we can only see windows service plan in VS publish process. 根据设计,我们只能在VS发布过程中看到Windows服务计划。

However there are alternatives for us to choose. 但是,我们还有其他选择。

  • FTP-- Upload pre-compiled files(under ~/bin/Debug(Release) folder) to website. FTP-将预编译的文件(在〜/ bin / Debug(Release)文件夹下)上传到网站。 Here's the reference . 这是参考

  • Local Git--You may have read this tutorial . 本地Git-您可能已经阅读了本教程 Note that Git bash can also be used in Windows. 请注意,Git bash也可以在Windows中使用。

  • GitHub--Follow this reference to connect VS with your GitHub, then config Deployment option in portal. GitHub-按照此参考将VS与GitHub连接,然后在门户中配置Deploy选项。 After that your code will be deployed automatically once pushed to GitHub. 之后,一旦推送到GitHub,您的代码将自动部署。

There are some other deployment ways like CI/CD aka Continuous Delivery in portal and another source control tool BitBucket. 还有其他一些部署方式,例如CI / CD或门户中​​的持续交付,以及另一种源代码控制工具BitBucket。 I recommend you to use GitHub as it's simple to operate in VS after configuration. 我建议您使用GitHub,因为配置后在VS中操作起来很简单。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不使用Visual Studio Code中的git的情况下将ASP.Net Core Angular Web应用发布到Azure - How can I publish my ASP.Net Core Angular web app to Azure without using git in Visual Studio Code ASP.net核心应用程序的Visual Studio Team Services中的Azure App Service部署失败 - Azure App Service Deployment failure from Visual Studio Team Services for ASP.net Core Application 将ASP.NET Core 1.1发布到基于Linux的应用程序服务 - Publish ASP.NET Core 1.1 to a Linux based App Service ASP.NET Core应用到Azure应用服务上的Linux - ASP.NET Core app to Linux on Azure App Service 通过应用服务计划查看由 Azure Web App 上托管的 ASP.NET Core MVC 生成的随机错误 - View random error generated from ASP.NET Core MVC hosted on Azure Web App via App Service Plan 如何使用 CICD 管道将带有 linux 应用服务计划的 ASP .NET 核心应用部署到 azure? - How to deploy ASP .NET core app with linux app service plan to azure using CICD pipelines? 无法使用Visual Studio 2017将ASP.NET Core Angular项目发布到Azure - Failed to publish ASP.NET Core Angular Project to Azure with Visual Studio 2017 Visual Studio Web 将 ASP.NET 应用程序发布到 Azure Web 应用程序结果为 Forbidden,除了来自一个分支、一台计算机的代码 - Visual Studio Web Publish ASP.NET app to Azure Web App results in Forbidden except for code from one branch, one computer 如何将 Blazor Web 程序集与 ASP.NET 核心托管和身份验证应用程序发布到 ZCF04A02E37B774FC3917A 服务? - How to publish Blazor Web assembly with ASP.NET core hosting and identity auth app to azure App Service? 将 Asp.net 核心 mvc 应用程序从 visual studio 重新发布到 azure 应用程序服务是否会生成指向实时网站的新链接或与以前的链接相同? - Does republishing Asp.net core mvc app from visual studio to azure app service generate a new link to live website or same as previous?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM