Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created June 20, 2021 18:00
Show Gist options
  • Save PatrickKalkman/8baff865619584576fae4e8725189379 to your computer and use it in GitHub Desktop.
Save PatrickKalkman/8baff865619584576fae4e8725189379 to your computer and use it in GitHub Desktop.
Default configuration using the CreateDefaultBuilder
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment