I\'m working on an MVC 4 project started in Visual Studio 2010. Right now I\'m working on a machine with Visual Studio 2012 as I don\'t have access to the machine I was original
I battled this for an hour and none of the above suggestions worked. In the end only the following worked (for some obtuse reason) :
Uninstall-Package Microsoft.AspNet.Web.Optimization Install-Package Microsoft.AspNet.Web.Optimization Microsoft.AspNet.Web.Optimization. If you want a particular version (say v1.1.1), use Install-Package Microsoft.AspNet.Web.Optimization -Version 1.1.1 parameter or nuget will operate at the Solution-level, possibly trampling sibling projects.