using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; namespace WebfrontCore { public class Program { public static void Main(string[] args) { var config = new ConfigurationBuilder() .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) .Build(); var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup() .UseUrls(config["Web:Address"]) .Build(); host.Run(); } } }