public static void Main(string[] args) { var config = new ConfigurationBuilder() .AddEnvironmentVariables(prefix: "ASPNETCORE_") .Build(); StartupBase.Init <Startup>(host => host .UseConfiguration(config) //.UseDefaultHostingConfiguration(args) .UseIISPlatformHandlerUrl() .UseKestrel()); }
public static void Main(string[] args) { var config = new ConfigurationBuilder() .AddCommandLine(args) .AddEnvironmentVariables(prefix: "ASPNETCORE_") .Build(); StartupBase.Init <Startup>(s => s .UseConfiguration(config) .UseEnvironment("Development") .UseKestrel() .UseIISIntegration()); }