Skip to content

Instantly share code, notes, and snippets.

@StephanyBatista
Created September 12, 2017 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StephanyBatista/181f6393f69edd90787d964f10b3ad3a to your computer and use it in GitHub Desktop.
Save StephanyBatista/181f6393f69edd90787d964f10b3ad3a to your computer and use it in GitHub Desktop.
New program.cs in .Net Core 2.0
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment