Reputation: 602
I am trying to add BundleConfig.cs to my Mvc project. Also i added to Global.asax
BundleConfig.RegisterBundles(BundleTable.Bundles);
But there is an error with BundleTable. My BundleConfig.cs Code is:
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
}
}
Upvotes: 3
Views: 3662
Reputation: 20754
You should add System.Web.Optimization
namespace to BundleConfig.cs
.
Also you might need to install Microsoft ASP.NET Web Optimization Framework
nuget package
Upvotes: 6