My project is on MVC 4. In it I can't access any of scripts function like @Scripts.Render("~/bundles/modernizr") as Scripts is an ambigious reference between 'System.Web.WebPages.Scripts' and 'System.Web.Optimization.Scripts'
I have following entries in my webconfig :
<pages>
<namespaces>
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
<add namespace="Product360"/>
</namespaces>
</pages>
I updated System.web.optimization from package manager console, still it's showing me same error.
I can't figure out why it's intellisensing in System.web.WebPages instead of System.web.optimization.
Anyone has any updates on this?