【翻译】使用Visual Studio在Azure上部署Asp.Net Core Web应用

  • 时间:
  • 浏览:0
  • 来源:大发幸运飞艇APP下载_大发幸运飞艇APP官方

Expand Entity Framework Migrations and check Apply this migration on publish

点击About和Contact链接,根据你设备分辨率的大小,你而且必须点击导航图标才能看过哪几种链接。

Verify Authentication is set to Individual User Accounts

Tap the About and Contact links. Depending on the size of your device, you might need to tap the navigation icon to show the links

在app service plan点击New,选取有另2个

扩展Databases,选中Use this connection string at runtime

Tap New... for the app service plan and select a location near you. You can keep the default generated name

Tap New... for the resource group and enter a name for the new resource group

完成新项目的创建

测试About和Contact链接

点击Web Application

在命令终端下,到项目目录运行以下命令:

安装.NET Core + Visual Studio tooling

Install .NET Core + Visual Studio tooling

按Ctrl+F5在本地运行应用

在中间的面板,点击选取Asp.Net Core Web Application(.Net Core)

在resource group点击New,而且为這個 资源组取名

点击OK

Tap Publish and wait until Visual Studio finishes publishing your app

Tap New... to create a new resource group. Creating a new resource group will make it easier to delete all the Azure resources you create in this tutorial.

Verify Host in the cloud is not checked

Verify your Azure account. You can open a free Azure account or Activate Visual Studio subscriber benefits.

In the center pane, tap ASP.NET Core Web Application (.NET Core)

在左边面板,点击Web

Right-click on the project in Solution Explorer and select Publish....

Create a new resource group and app service plan:

You can fix the problem in two different ways:

The app displays the email used to register the new user and a Log off link.

Test the About and Contact links

在Solution Explorer右键项目,点击Publish

In the Publish dialog, tap Microsoft Azure App Service.

Run the following from a command prompt in the project's directory:

Expand Databases and check Use this connection string at runtime

In the New ASP.NET Core Web Application (.NET Core) dialog:

点击Explore additional Azure services去创建有另2个新的数据库

点击OK

验证你的Azure账号。而且你注册有另2个免费的Azure账号也可不必须激活你的Visual Studio的Azure信用额度。

当你完成测试后,去Azure后台删除這個 应用。

Visual Studio will publish your app to Azure and launch the cloud app in your browser.

Authentication设置成Individual User Accounts

扩展Entity Framework Migrations,选中Apply this migration on publish

https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/publish-to-azure-webapp-using-vs

点击Apply Migrations,等待歌曲更新后,刷新页面

你也可不必须通过菜单来创建有另2个新的项目。点击File > New > Project…

In the Visual Studio Start Page, tap New Project....

刷新页面后,页面会显示我们 歌词 注册的新用户和看过有另2个Log off的链接。

Register a new user

在Publish对话框中,点击Microsoft Azure App service.

在Visual Studio启示页面,点击New Project…

Press Ctrl-F5 to run the app locally

点击New创建有另2个新的资源组。创建新的资源组可不必须方便你删除所有在Azure上创建的范例资源。

Tap Explore additional Azure services to create a new database

On the Settings stage of the Publish dialog:

Tap Apply Migrations and, once the page updates, refresh the page;

点击Publish对话框的Settings标签

Tap Web Application

In the left pane, tap Web

Complete the New Project dialog:

Tap OK

不选中Host in the Cloud

而且你使用以下有某种妙招修复大问题:

Alternatively, you can use the menus to create a new project. Tap File > New > Project....

When you have finished testing the app, go to the Azure portal and delete the app.

Visual Studio会在发布到Azure后通过浏览器打开你在云端部署的应用。

Tap OK

打上去有另2个新的Resource group和app service plan:

点击Publish,等待歌曲Visual Studio完成发布你的应用。

注册有另2个用户

在New Asp.Net Core Web Application(.Net Core)对话框中: