asp.net core6 wwwroot目录过大后启动慢
asp.net core6 wwwroot目录过大后启动慢解决方案:
1、应用中不要启用reloadOnChange
config.AddJsonFile(file, optional: true, reloadOnChange: false);
2、启用添加命令行参数
dotnet run xxx.dll --hostBuilder:reloadConfigOnChange=false
asp.net core6 wwwroot目录过大后启动慢解决方案:
1、应用中不要启用reloadOnChange
config.AddJsonFile(file, optional: true, reloadOnChange: false);
2、启用添加命令行参数
dotnet run xxx.dll --hostBuilder:reloadConfigOnChange=false