Search code examples
c#asp.netasp.net-mvclessdotless

Unable to use Less.Parse using dotless in C#


I am following the instructions for using .less to minify the css.

I have included the dll and made the Web.config changes.

However, when I refer to it in index.cshtml as Less.Parse, the Less namespace is not available and I get the exception "The name Less does not exist in the current context."

What am I missing?


Solution

  • I have solved it. It was just missing the parent namespace. Now conversion works like a charm.

    dotless.Core.Less.Parse(css)