Skip to content

Instantly share code, notes, and snippets.

@mikebrind
Last active Sep 2, 2016
Embed
What would you like to do?
using Microsoft.AspNetCore.Hosting;
using System.IO;
namespace IHostingEnvironmentExample
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseWebRoot("www")
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment