sametbilgi
sametbilgi

Reputation: 602

In BundleConfig.cs cannot find BundleCollection

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

Answers (1)

Hamid Pourjam
Hamid Pourjam

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

Related Questions