BundleTable.Bundles.RegisterTemplateBundles

У меня есть проект MVC4 RC, созданный с помощью VS2010. Я не уверен, что произошло, вдруг я начал получать следующую ошибку:

Error 1 'System.Web.Optimization.BundleCollection' does not contain a definition for 'RegisterTemplateBundles' and no extension method 'RegisterTemplateBundles' accepting a first argument of type 'System.Web.Optimization.BundleCollection' could be found (are you missing a using directive or an assembly reference?) C:\xxxx\xxxx\Global.asax.cs 40 33 xxxx

Ошибка исходит от приложения _Пуск():

protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            BundleTable.Bundles.RegisterTemplateBundles();

        }

У меня есть следующие операторы использования в моем файле Global.asax.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

Любые идеи????

6
задан Hao Kung 8 July 2014 в 23:32
поделиться