Unable to use Less.Parse using dotless in c#


I am following the link <a href="https://github.com/dotless/dotless/wiki/Using-.less" rel="nofollow">https://github.com/dotless/dotless/wiki/Using-.less</a> to minify the css. I have include the dll and made Web.config changes.

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

can somebody advise what am I missing?


I have solved it.. just missing parent name space and conversion works like a charm



If you are using Visual Studio, Web Essentials has support for less.

<a href="http://vswebessentials.com/features/less" rel="nofollow">http://vswebessentials.com/features/less</a>

I often use it for :

<ul><li>.less to .css preview</li> <li>View output from a .less compile</li> <li>Extract variables/mixins</li> </ul>

After build if you go to Output and select Web Essentials from the 'Show output from:' dropdown, you will see a date, time and the list of .less files that have compiled.


  • Use Hidden field in syncfusion column chart series
  • Model binder ValueProvider appends to the existing value + MVC 4
  • Recursion in ASP.NET Core Razor views
  • MVC extension method error
  • C++ Coin flip program error
  • string.IsNullOrEmpty() Doesn't Seem to Work on a String within a Class within a Class
  • RavenDB indexing errors
  • how to solve invalid conversion specifier warning in iphone app
  • abstracting over a collection
  • WPF Template Binding in ToggleButton UserControl
  • Elasticsearch script query involving root and nested values
  • SAXReader not re-ecape characters
  • Django model inheritance, filtering models
  • Why use database factory in asp.net mvc?
  • How do I configure context broker accept post requests from my remote sensor?
  • Force show.bind execution
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • Groovy: Unexpected token “:”
  • How to create a file in java without a extension
  • Disable Enter in editText android
  • Java Scanner input dilemma. Automatically inputs without allowing user to type
  • Master page gives error
  • Splitting given String into two variables - php
  • javascript inside java/jsp code
  • Javascript Callbacks with Object constructor
  • MySQL WHERE-condition in procedure ignored
  • 0x202A in filename: Why?
  • PHP: When would you need the self:: keyword?
  • Android Studio and gradle
  • Acquiring multiple attributes from .xml file in c#
  • How does Linux kernel interrupt the application?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Linking SubReports Without LinkChild/LinkMaster
  • Can't mass-assign protected attributes when import data from csv file
  • sending mail using smtp is too slow
  • Checking variable from a different class in C#
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • reshape alternating columns in less time and using less memory
  • How can i traverse a binary tree from right to left in java?
  • How can I use threading to 'tick' a timer to be accessed by other threads?