0
votes

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:

enter image description here

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

1
I skimmed it. I'm not sure that the community edition supports "publish profiles". i'll need to read it more thoroughly, however.craig

1 Answers

0
votes

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

enter image description here