asp.net - Intellisense on .LESS files -


i'm introducing less existing asp.net web forms application. in order intellisense work, decided set lesscsshttphandler intercept requests files ending in .less.css. way, visual studio still thinks we're dealing css file. did adding following line web.config file:

<add type="dotless.core.lesscsshttphandler, dotless.core"       validate="false" path="*.less.css" verb="*" /> 

in order work, had tweak iis settings .css files handled asp.net framework. unfortunately, doing so, existing .css files (which aren't handled dotless http handler since don't end in .less.css) aren't returning content. makes sense since asp.net framework doesn't know when sees file extension.

is there sort of base http handler can set in addition 1 have above handle normal .cssfiles? like:

<add verb="*" path="*.css" type="insert base http handler here return contents of file" /> 

looks staticfilehandler looking for. how ended adding our httphandlers node in web.config:

<add verb="*" path="*.less.css" validate="false" type="dotless.core.lesscsshttphandler, dotless.core, version=1.1.0.7, culture=neutral, publickeytoken=96b446c9e63eae34, processorarchitecture=msil" /> <add verb="*" path="*.css" type="system.web.staticfilehandler" /> 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -