0
當我瀏覽一個頁面,我可以看到的是 -MVC3腳本捆包只呈現空腳本標籤
<script></script>
我_Layout.cshtml看起來像
<script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/helpdesk/Scripts")"></script>
Application_Start()
在Global.asxc.cs
看起來像
protected void Application_Start() {
AreaRegistration.RegisterAllAreas();
BundleTable.Bundles.EnableDefaultBundles();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
}
有什麼想法?
+1他的anaswer加上你可以解決使用BundleTable.Bundles.GetRegisteredBundles(); – heads5150