我正在使用dotLess。无法让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 - 剃刀视图引擎)
我的布局有一个链接到我的.LESS包括文件:
<link rel="stylesheet/css" type="text/css" href="@Url.Content("~/Content/Site.less")" />
我也在我的web应用程序添加的一个参考dotless.Core.dll
然而,尽管所有的当我这样做,页面主体底色为黑色的简约的造型,没有任何反应,由于某种原因,它不是踢进去。
我在这里错过了什么吗?
关于标签:他正在使用的有一点点不同的语法比的WebForms的<% %>视图引擎的Razor视图引擎。 –