发布ASP.NET MVC应用程序时CSS捆绑问题

时间:2014-09-30 16:55:20

标签: css asp.net-mvc-5 publish

我正在尝试在本地网络服务器上发布我的ASP.NET MVC 5应用程序,找不到我在布局视图中捆绑的CSS文件(bundleConfig.cs中的包定义是

bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));

),当我更换 @Styles.Render("~/Content/css")
 与

<link href="~/Content/bootstrap.css" rel="stylesheet" />
<link href="~/Content/Site.css" rel="stylesheet" /> 

它有效。

0 个答案:

没有答案