Skip to content

Instantly share code, notes, and snippets.

@IEvangelist
Created May 3, 2021 13:29
Show Gist options
  • Save IEvangelist/05a2da88a25e5677ff53c22d46a52db0 to your computer and use it in GitHub Desktop.
Save IEvangelist/05a2da88a25e5677ff53c22d46a52db0 to your computer and use it in GitHub Desktop.
Simplified ASP.NET Core `Program` file
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Company.WebApplication1;
await Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>())
.Build()
.RunAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment