diff options
Diffstat (limited to 'src/SMAPI.Web/Program.cs')
-rw-r--r-- | src/SMAPI.Web/Program.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/SMAPI.Web/Program.cs b/src/SMAPI.Web/Program.cs index eeecb791..5856fc98 100644 --- a/src/SMAPI.Web/Program.cs +++ b/src/SMAPI.Web/Program.cs @@ -1,4 +1,4 @@ -using System.IO; +using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace StardewModdingAPI.Web @@ -14,10 +14,8 @@ namespace StardewModdingAPI.Web public static void Main(string[] args) { // configure web server - new WebHostBuilder() - .UseKestrel() - .UseContentRoot(Directory.GetCurrentDirectory()) - .UseIISIntegration() + WebHost + .CreateDefaultBuilder(args) .UseStartup<Startup>() .Build() .Run(); |