Nuget 如何添加对System.Web.Optimization for MVC 5的引用

Nuget 如何添加对System.Web.Optimization for MVC 5的引用,nuget,Nuget,App\u Start\BundleConfig.cs: 命名空间“System.Web”中不存在类型或命名空间名称“Optimization”(是否缺少程序集引用?) Global.asax.cs: 命名空间“System.Web”中不存在类型或命名空间名称“Optimization”(是否缺少程序集引用?) App\u Start\BundleConfig.cs: 找不到类型或命名空间名称“BundleCollection”(是否缺少using指令或程序集引用?) 我在尝试构建解决方案时遇到

App\u Start\BundleConfig.cs: 命名空间“System.Web”中不存在类型或命名空间名称“Optimization”(是否缺少程序集引用?)

Global.asax.cs: 命名空间“System.Web”中不存在类型或命名空间名称“Optimization”(是否缺少程序集引用?)

App\u Start\BundleConfig.cs: 找不到类型或命名空间名称“BundleCollection”(是否缺少using指令或程序集引用?)

我在尝试构建解决方案时遇到上述错误

我在Package manager控制台中尝试了以下操作: (仍然存在生成错误)


不幸的是,捆绑包是可用的!!
Install-Package Microsoft.AspNet.Web.Optimization
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0)'.
Attempting to resolve dependency 'WebGrease (≥ 1.5.2)'.
Attempting to resolve dependency 'Antlr (≥ 3.4.1.9004)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.4)'.
'Microsoft.AspNet.Web.Optimization 1.1.3' already installed.
AdminHelpDesk already has a reference to 'Microsoft.AspNet.Web.Optimization 1.1.3'.