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

Question

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

Answers 1
Added at 2017-09-07 22:09
Tags
Question

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

Answers to

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

nr: #1 dodano: 2017-09-07 22:09

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.

Source Show
◀ Wstecz