title: ASP.NET web optimization framework
body: <p>I am bundling and minifying my javascript files as shown below    </p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/CommunityMaintenance")
                    .Include(
                    "~/Scripts/Common.js",
                    "~/Scripts/AjaxEnhancers.js",
                    "~/Scripts/CommunityMaintenance.js",
                    "~/Scripts/TAR.js",
                    "~/Scripts/jquery.hotkeys-0.7.9.js"
                    ));
  
  
                  ScriptManager.ScriptResourceMapping.AddDefinition(
                     "CommunityMaintenance",
                     new ScriptResourceDefinition
                     {
                         Path = "~/bundles/CommunityMaintenance"
                     });
  </code></pre>
  
  <p>However, when I need to turn it off using </p>
  
  <pre><code>System.Web.Optimization.BundleTable.EnableOptimizations = false;
  </code></pre>
  
  <p>This does not work. I have registered my bundles in the Application_Start method in Global.asax and am disabling optimization in the very next line. I have even set the debug to true but it makes no difference. What am I doing wrong?</p>