Created
September 21, 2016 16:51
-
-
Save nbxx/60c3ce44f61ca4dd6c842b4bc3ae88ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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