Skip to content

Instantly share code, notes, and snippets.

@gussiciliano
Created November 7, 2017 21:37
Show Gist options
  • Save gussiciliano/82f0c28606359c0e4fa74b0eca6b1d53 to your computer and use it in GitHub Desktop.
Save gussiciliano/82f0c28606359c0e4fa74b0eca6b1d53 to your computer and use it in GitHub Desktop.
Program .NET Core 1.1
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace NetCoreBootstrap
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment