title: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
body: <p>So, I have a MVC 4 project in C# and I am using Visual Studio For Web 2012 Express.</p>
  
  <p>I cannot compile the projecto due to the error:
  The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>Normally, this would mean that a library is missing. Thus after making a quick search on the internet I used NuGet to install <code>Microsoft.AspNet.Web.Optimization</code>, but that still did not work. </p>
  
  <p>What makes this intriguing to me is that BundleCollections should be known to the application by deafult. I can only imagine that I have added a dependency that messed everything up, but I really can't know for sure.</p>
  
  <p>How can I fix this problem? What am I missing here?</p>
  
  <p>Code:</p>
  
  <pre><code>using System;
  using System.Web;
  using System.Web.Optimization;
  
  namespace Dockis
  {
  
      public class BundleConfig
      {
          // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
          public static void RegisterBundles(BundleCollection bundles)
          {
              IItemTransform cssFixer = new CssRewriteUrlTransform();
  
              bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                          "~/Scripts/jquery-{version}.js"));
  
             //...
          }
      }
  }
  </code></pre>
  
  <hr>
  
  <p>EDIT</p>
  
  <p>After checking my references folder I tried running the command <code>Install-Package System.Web.Optimization</code>, however I cannot install this package. I get the following error:</p>
  
  <pre><code>Install-Package : One or more errors occurred.
  At line:1 char:16
  + Install-Package &lt;&lt;&lt;&lt;  System.Web.Optimization
      + CategoryInfo          : NotSpecified: (:) [Install-Package], AggregateException
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
  </code></pre>
  
  <p>What is odd, is the fact that running <code>Install-Package System.Web.Optimization.Less</code> works, and fixes some depencie problems, but <strong>not</strong> all of them. Thus I believe I really need the first command to work. </p>
  
  <p>What am I doing wrong?</p>