Blaozr 静态文件开发与发布base目录同步问题
在项目文件.csproj中添加配置
<StaticWebAssetBasePath>newdir</StaticWebAssetBasePath>
发布后的内容会被套在这个文件夹里面
修改wwwroot/index.html内base标签
<base href="/newdir/" />
修改 launchSettings.json
"applicationUrl": "http://localhost:5077",
"launchUrl": "http://localhost:5077/newdir",
"commandLineArgs": "--pathbase=/newdir",
浙公网安备 33010602011771号