public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseUrls("http://losthost:8888") //改變 Kestrel 使用的 Port Number .UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
再執行程式,會發現開啟 Browser 的 Url Port Number 還是 5000,When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.
評論