添加css和js库的angular2.net核心应用程序
创建应用程序后,如您所知,布局中引用了默认的供应商css库,因此我在同一目录(wwroot/assets)中添加了具有相同语法的模板的css文件,但它不起作用,但没有关于ref(未找到)的错误,因此它假定加载到浏览器中,但它没有添加css和js库的angular2.net核心应用程序,angular,asp.net-core,Angular,Asp.net Core,创建应用程序后,如您所知,布局中引用了默认的供应商css库,因此我在同一目录(wwroot/assets)中添加了具有相同语法的模板的css文件,但它不起作用,但没有关于ref(未找到)的错误,因此它假定加载到浏览器中,但它没有 <link rel="stylesheet" href="~/dist/vendor.css" asp-append-version="true" /> <!-- Custom files--> <link class="
<link rel="stylesheet" href="~/dist/vendor.css" asp-append-version="true" />
<!-- Custom files-->
<link class="nor-css" rel="stylesheet" href="~/assets/css/global/bootstrap.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/assets/css/switchery/switchery.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/assets/css/global/slidePanel.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/assets/css/global/waves.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/assets/plugin/bootstrap-tour/css/bootstrap-tour.css" asp-append-version="true" />
如何将这些css文件导入project?核心文件系统是如何工作的
这是我的mvc应用程序中的模板,我处理的引用和库完全相同。
这是原始页面和我的开发示例
这应该行得通。为我工作。你在那里发现什么问题了吗?