简体   繁体   English

如何将 .Net Core Web Api 从 VS Code 发布到 Azure?

[英]How to publish a .Net Core Web Api from VS Code to Azure?

I'm starting with some examples on how to create a .Net Core Web Api in Visual Studio Code and everything is working fine locally :)我从一些关于如何在 Visual Studio Code 中创建 .Net Core Web Api 的示例开始,并且在本地一切正常:)

Now, I would like to publish the Web Api to Azure using VS Code.现在,我想使用 VS Code 将 Web Api 发布到 Azure。

  1. Is that possible?这可能吗?
  2. If so, can that be done using the UI?如果是这样,可以使用 UI 来完成吗? or command line/ third party tool?或命令行/第三方工具?

From Visual Studio 2015 I know how to do that.从 Visual Studio 2015 我知道如何做到这一点。 Just wondering if we can do the same from VS Code.只是想知道我们是否可以从 VS Code 中做同样的事情。

any help would be very appreciated任何帮助将不胜感激

If so, can that be done using the UI?如果是这样,可以使用 UI 来完成吗? or command line/ third party tool?或命令行/第三方工具?

The Azure App Services extension for VS Code lets you quickly browse, create, manage, and deploy Azure App Service websites. VS Code 的Azure 应用服务扩展可让你快速浏览、创建、管理和部署 Azure 应用服务网站。

在此处输入图片说明

You need to read the following tutorial: https://docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio-code您需要阅读以下教程: https : //docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio-code

As @Tom Sun - MSFT said, there are plugins.正如@Tom Sun - MSFT 所说,有插件。 I recomend you to install the following:我建议您安装以下内容:

  • .NET Core Extension Pack .NET Core 扩展包
  • Azure App Service Azure 应用服务

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

相关问题 如何在多台服务器上发布 Web API net core 3.0 - How to Publish a Web API net core 3.0 in multiple servers 无法使用VS工具发布现有的ASP.NET Core 1.0 Web API - Unable to publish existing ASP.NET Core 1.0 Web API using VS Tools Azure AD:从其他 .net Core Web API 调用 .net Core Web API - Azure AD: Call .net Core Web API from other .net Core Web API 如何在 .Net 核心 Web API 中进行 Azure AD 组授权? - How to do Azure AD groups authorization in .Net core web API? 如何将 Blazor Web 程序集与 ASP.NET 核心托管和身份验证应用程序发布到 ZCF04A02E37B774FC3917A 服务? - How to publish Blazor Web assembly with ASP.NET core hosting and identity auth app to azure App Service? 如何在VS 2017中设置Angular 7与Net Core Web API进行通信 - How to setup angular 7 to communicate with net core web api in VS 2017 Azure上的Asp.Net Core Web API - Asp.Net Core Web API on Azure 访问.Net Core Web Api 2.1上的发布文件夹的文件夹 - Accessing up folder of publish folder at .Net Core web Api 2.1 无法在本地iis上发布.net Core Web API - Can't publish .net core web api on local iis Web api (.Net Core) 返回 204 发布后无内容 - Web api (.Net Core) returning 204 No content after publish
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM