AngryHacker
AngryHacker

Reputation: 61646

How do I deploy a .net core 1.1 app to IIS?

I right-clicked on the project and selected Publish. I chose Folder as the target and VS 2017 published it to that folder.

I want to copy the output to IIS so that I can host it. Which folder should IIS point to in the output?

The output contains a bunch of folders and I've tried to get IIS to point to some of them without any success. In addition, I am not seeing a default.htm or anything traditional like that.

So where should IIS point to?

enter image description here

Upvotes: 1

Views: 392

Answers (1)

Win
Win

Reputation: 62300

You will need to copy whatever you see inside the screenshot under PublishOutput to a folder in web server. For example, C:\inetpub\wwwroot\yourapplication.

Then in IIS, Add Website or Add Application depending on your requirement.

enter image description here

enter image description here

In addition, you will need to install .NET Core Windows Server Hosting bundle on the web server.

Upvotes: 1

Related Questions