How to add js and css files in ASP.net Core?

前端 未结 5 1150
日久生厌
日久生厌 2020-12-29 23:44

I\'ve been assigned to migrate an application from MVC into ASP.net Core, I\'m new to ASP.net Core. In MVC we have BundleConfig.cs and in there we add reference

5条回答
  •  自闭症患者
    2020-12-29 23:57

    It might be a bit late to answer the question, but for the ones who come here via Google: I found that adding asp-append-version="true" worked for me, as all the other options given in the other answers were already provided in _Layout.cshtml.

提交回复
热议问题