Visual studio publish website

broken image
broken image

In the future, there could be other options, including WebListener which will be Windows only.

broken image

WebHostBuilder is used to configure and create the WebHost. You will normally see UseKestrel() and UseIISIntegration() in the WebHostBuilder setup code.

broken image

UseContentRoot(Directory.GetCurrentDirectory())Īll ASP.NET Core applications require a WebHost object that essentially serves as the application and web server. Your project now contains a Program.cs file just like a console app would have and it contains the following code: The first thing you will notice when creating a new ASP.NET Core project is they are actually console applications. How to Configure Your ASP.NET Core App For IIS