我正在使用
dotLess.
我按照他们所有的指示(这看起来很简单)它只有4步:)
我的最小web.config看起来像这样:
<configuration> <configSections> <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler,dotless.Core" /> </configSections> <dotless minifyCss="false" cache="true" /> <system.web> <httpHandlers> <add type="dotless.Core.LessCssHttpHandler,dotless.Core" validate="false" path="*.LESS" verb="*" /> </httpHandlers> </system.web> <system.webServer> <handlers> <add name="LessHttpHandler" type="dotless.Core.LessCssHttpHandler,dotless.Core" preCondition="integratedMode" path="*.less" verb="*" /> </handlers> </system.webServer> </configuration>
我在我的内容文件夹中添加了我的.less文件(我正在使用ASP.NET MVC – Razor ViewEngine)
<link rel="stylesheet/css" type="text/css" href="@Url.Content("~/Content/Site.less")" />
我还在我的web应用程序中添加了一个对dotless.Core.dll的引用
尽管如此,当我对页面的背景到黑色进行简单的造型时,没有任何反应,因为某些原因它不会被踢入.
我错过了什么吗?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。