using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace StardewModdingAPI.Web { /// The main app entry point. public class Program { /********* ** Public methods *********/ /// The main app entry point. /// The command-line arguments. public static void Main(string[] args) { // configure web server WebHost .CreateDefaultBuilder(args) .CaptureStartupErrors(true) .UseSetting("detailedErrors", "true") .UseKestrel().UseIISIntegration() // must be used together; fixes intermittent errors on Azure: https://stackoverflow.com/a/38312175/262123 .UseStartup() .Build() .Run(); } } }