How to enable and disable optimizations in ASP.NET MVC?

You can enable and disable optimizations by setting EnableOptimizations property of BundleTable class to true or false with in Global.asax.cs file as shown below.

protected void Application_Start() {
	//other code has been removed for clarity
	//disable optimization
	System.Web.Optimization.BundleTable.EnableOptimizations = false;
}

 

Tagged , . Bookmark the permalink.

Leave a Reply