谁能告诉我如何在MVC 5中使用dotlessLESS?
我试着用NuGet安装dotless。
install-packege dotless
但是当我运行我的项目时,我得到了这个错误。
检测到一个ASP.NET设置在Integrated managed pipeline模式下不适用。 最有可能的原因是 这个应用程序在system.webhttpHandlers部分定义了配置。
system.web/httpHandlers
是用于IIS 6的,所以如果这不是你的选择(例如你使用IIS 7+),只需删除 httpHandlers
阕 web.config
或者不删除 httpHandlers
只需加 validateIntegratedModeConfiguration
选项进 system.webServer
部分。
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
...
这些链接对如何使用dotless很有帮助。
http:/www.brendanforster.comblogyet-another-implement-less-in-aspnetmvc-post.html
http:/www.asp.netmvcoverviewperformancebundling-and-minification