在Visual Studio项目中启动调试模式时未加载资源

时间:2018-08-13 15:35:55

标签: asp.net asp.net-mvc razor

我正在以调试模式启动VS项目(ASP.Net和Angular),但是没有任何资源被加载。

enter image description here

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/中。我可能做错了什么?

0 个答案:

没有答案