我似乎无法获得新的捆绑/缩小功能在我的项目中工作。我在_Layout.cshtml中有这个。MVC4新捆绑/缩小功能
<link href="@Url.Content("~/Content/themes/" + ViewBag.SiteEntity.LayoutName + "/css/css")" rel="stylesheet" />
这给我的链接HREF =“/内容/主题/ FixedLayout21/CSS/CSS”相对=“样式表”,这是正确的道路,但其在浏览器中不显示。任何iodeas?
你的捆绑规则是什么? – 2011-12-28 22:24:49
谢谢你指出。我在ScottGu的博客上没有看到这一点。我添加了BundleTable.Bundles.EnableDefaultBundles();它的工作原理。 – 2011-12-28 22:30:28