Skip to content

Instantly share code, notes, and snippets.

@nbxx
Created September 21, 2016 16:51
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 nbxx/60c3ce44f61ca4dd6c842b4bc3ae88ad to your computer and use it in GitHub Desktop.
Save nbxx/60c3ce44f61ca4dd6c842b4bc3ae88ad to your computer and use it in GitHub Desktop.
using System;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
new WebHostBuilder()
.UseKestrel()
.UseStartup<Startup>()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseUrls("http://localhost:6666/")
.Build()
.Run();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment