.Net 配置自定义的wwwroot
1 public static IHostBuilder CreateHostBuilder(string[] args) => 2 Host.CreateDefaultBuilder(args) 3 .ConfigureWebHostDefaults(webBuilder => 4 { 5 webBuilder.UseWebRoot("wwwroot"); 6 .... 7 }) 8 }
配置自定义的wwwroot 目录, 或自动生成wwwroot目录
1 public static IHostBuilder CreateHostBuilder(string[] args) => 2 Host.CreateDefaultBuilder(args) 3 .ConfigureWebHostDefaults(webBuilder => 4 { 5 webBuilder.UseWebRoot("wwwroot"); 6 .... 7 }) 8 }
配置自定义的wwwroot 目录, 或自动生成wwwroot目录