I have just upgraded an ASP.NET MVC 3 project to MVC 4, and am now trying to add bundling and minification facilities to it. So far I have installed Microsoft ASP.NET Web Optimization Framework via NuGet and added System.Web.Optimization among the Razor namespaces in Web.config:
<system.web>
...
<pages>
<namespaces>
...
<add namespace="System.Web.Optimization" />
...
</namespaces>
</pages>
...
</system.web>
However, @Styles and @Scripts are still not directly accessible in my Razor views (*.cshtml), I am forced to prefix them with the System.Web.Optimization namespace. Any clues as to what I'm missing?