Hosting Asp.Net Core for Local Development - Gary-Moore/developmentwiki GitHub Wiki

Kestrel

The suggested way of running Asp.Net Core apps locally is by using the Kestrel server. You can use the 'watch' command:

dotnet watch run

This will apply a filewatcher which will restart the app on any file change.

dotnet filewatcher

Also run the following command first to allow HTTPS development

dotnet dev-certs https --trust

IIS hosting

ASP.NET Core apps can be debugged locally by running behind IIS on Windows Server. This is described in the link below:

Host Locally in IIS