Visual Studio 2012 open MCV4 project has error message - 'Optimization' does not exist in the namespace 'System.Web'

 

Error message:

The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)   

                                                                               

Solution:

Install Microsoft ASP.NET Web Optimization Framework 1.0.0 ( http://nuget.org/packages/Microsoft.AspNet.Web.Optimization/1.0.0)

From the Tools menu, select Library Package Manager and then click Package Manager Console.>

Install-Package Microsoft.AspNet.Web.Optimization -Version 1.0.0

沒有留言:

張貼留言