1 2 3 4 5 6 |
public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args).UseStartup < Startup > ().Build(); } |
How to Publish ASP.NET Core 2 in IIS
This article will teach you how you can deploy or host you ASP.NET Core 2.0 web application on IIS. The hosting of ASP.NET Core 2.0 is a little different from hosting in ASP.NET. So, let’s understand it step by step. Program class in asp.net core 2.0 contains a method that is called “CreateDefaultBuilder”. It is responsible for setting up everything for your application related to hosting, manage server, IIS integration, create directory etc.
Just