标签:string net public create run void stat 指定端口 main
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).UseUrls("http://*:5001") //直接指定端口
.Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
标签:string net public create run void stat 指定端口 main
原文地址:https://www.cnblogs.com/zhang-wenbin/p/12791754.html