title: ResolveBundleUrl not resolving all files?
body: <p>I am new to MVC so thought I would start a new project and try out some of the new features in MVC4. I have two css files in my <code>Content</code> directory, <code>normalise_mini</code> and <code>site.css</code>. When I use the following code:</p>
  
  <pre><code>&lt;link href="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Content/css")" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>It only takes my <code>site.css</code> file not my normalisation file. I have the following in my app start:</p>
  
  <pre><code>protected void Application_Start()
  {
  
      // Remove all other view engines except razor:
      ViewEngines.Engines.Clear();
      ViewEngines.Engines.Add(new RazorViewEngine());
  
      AreaRegistration.RegisterAllAreas();
  
      RegisterGlobalFilters(GlobalFilters.Filters);
      RegisterRoutes(RouteTable.Routes);
  
      BundleTable.Bundles.RegisterTemplateBundles();
      BundleTable.Bundles.EnableDefaultBundles();
  }
  </code></pre>
  
  <p>Do I need to create a bundle for each css file (as <a href="https://stackoverflow.com/questions/9522407/asp-net-optimization-bundling">this</a> person is doing)? Or should it just find all the css files automatically (which I would expect to be the default behaviour). It might be worth noting that I started this project as a Empty Website based on Razor view engine (which actually wasn't empty at all :/)</p>
  
  <p>Thanks in advance</p>
  
  <hr>
  
  <p><strong>Update</strong></p>
  
  <p>According to the link posted, I need to comment out the line that registers the template bundles. Eg: </p>
  
  <pre><code>protected void Application_Start()
  {
  
      // Remove all other view engines except razor:
      ViewEngines.Engines.Clear();
      ViewEngines.Engines.Add(new RazorViewEngine());
  
      AreaRegistration.RegisterAllAreas();
  
      RegisterGlobalFilters(GlobalFilters.Filters);
      RegisterRoutes(RouteTable.Routes);
  
      //BundleTable.Bundles.RegisterTemplateBundles();  // This is not needed
      BundleTable.Bundles.EnableDefaultBundles();
  }
  </code></pre>
  
  <p>This now works. My thoughts are that the two lines should co-exist without any problems. I guess it's by design, but is it bad design?</p>