添加新的ASP.NET Web优化框架MVC4项目后手动升级它们 [英] Adding the new ASP.NET Web Optimization framework to MVC4 projects after manually upgrading them

查看:237
本文介绍了添加新的ASP.NET Web优化框架MVC4项目后手动升级它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用这些指令,怎么办手动升级ASP.NET MVC项目MVC4 您然后设置的ASP.NET Web优化框架中MVC4的新的CSS和JavaScript的资产捆绑和最小化功能?默认模板有这一切成立,但你怎么用手工做的?

After manually upgrading an ASP.NET MVC project to MVC4 using these instructions, how do you then set up the new CSS and JavaScript asset bundling and minimization features of the ASP.NET Web Optimization Framework in MVC4? The default templates have this all set up, but how do you do it by hand?

推荐答案


  • 右键单击引用,然后管理的NuGet包,并添加Microsoft.AspNet.Web.Optimization(或键入安装封装Microsoft.AspNet.Web.Optimization 进入的NuGet控制台)。

  • 在Web.config文件,添加以下< system.webServer> ,允许缩小的捆绑与扩展名的URL担任

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆