Skip to content

Instantly share code, notes, and snippets.

@gussiciliano
Created November 7, 2017 21:39
Show Gist options
  • Save gussiciliano/6de1e7beffe339748cc085e151efc461 to your computer and use it in GitHub Desktop.
Save gussiciliano/6de1e7beffe339748cc085e151efc461 to your computer and use it in GitHub Desktop.
Program .NET Core 2.0
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace NetCoreBootstrap
{
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