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,