App_Start \ BundleConfig.cs:命名空间“System.Web”中不存在类型或命名空间名称“优化”(您是否缺少程序集引用?)
Global.asax.cs:命名空间“System.Web”中不存在类型或命名空间名称“优化”(您是否缺少程序集引用?)
App_Start \ BundleConfig.cs:找不到类型或命名空间名称'BundleCollection'(您是否缺少using指令或程序集引用?)
我在尝试构建解决方案时遇到上述错误 .
我在包管理器控制台中尝试了这个:(仍然存在构建错误)
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'.
1 回答
不幸的是捆绑包no longer available in MVC5