我正在以调试模式启动VS项目(ASP.Net和Angular),但是没有任何资源被加载。
Index.cshtml
@section scripts {
<script src="~/dist/inline.bundle.js" asp-append-version="true"></script>
<script src="~/dist/polyfills.bundle.js" asp-append-version="true"></script>
<script src="~/dist/vendor.bundle.js" asp-append-version="true"></script>
<script src="~/dist/main.bundle.js" asp-append-version="true"></script>
}
<div class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">@(ViewBag.Message ?? "SPORTS-STORE")</a>
</div>
<div class="p-1 bg-info">
calling app.component.html:
<app-root></app-root>
</div>
package.json中的scripts属性
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
}
文件存在于我项目的路径~/dist/
中。我可能做错了什么?