Getting ready

You will need to have IIS set up in order to do this. Start Programs and Features and click on Turn Windows features on or off in the left-hand side of the Programs and Features form. Ensure that Internet Information Services is selected. When you select IIS, click OK to turn the feature on:

You also need to ensure that you have installed the .NET Core Windows Server Hosting bundle, which will create a reverse-proxy between IIS and the Kestrel server. 

At the time of this writing, the .NET Core Windows Server Hosting bundle is available at the following link:  https://docs.microsoft.com/en-us/aspnet/core/publishing/iis#install-the-net-core-windows-server-hosting-bundle ...

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.