简体   繁体   中英

Deploy a Visual Studio Community 2017 Asp.Net Core 2 project to remote IIS machine

I've built an ASP.NET Core 2.0 MVC Web app on an OS X machine. I'd like to deploy it to a Windows 2012 server with IIS, not to Azure.

Visual Studio for Mac 2017 Community edition only has the option to publish to an Azure service:

在此处输入图片说明

What things on the remote server need to be configured prior to deployment? What are the step involved in the deployment?

I'd like to deploy it to a Windows 2012 server with IIS, not to Azure.

As you mentioned that Visual Studio for Mac 2017 Community only has publish to Azure option.

According to your description, my workaround is that you could use dotnet publish command to publish to a local folder .

I test it with Windows platform, you could try it on Mac. You are deploying to a remote server, you could zip up the files and move to the server. You also could refer to this blog to get more detail info.

dotnet publish webprojectName.csproj --output localpath

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM