Cassette has built-in support for LESS - the dynamic stylesheet language.

Add .less files to your web application. Cassette will compile them into CSS and include in bundles with your other stylesheets.

Important: All .less files must have their Build Action set to Content so they will get deployed with the web application.

  1. Select the files in the Visual Studio Solution Explorer
  2. Right-click > Properties
  3. In the Properties window, set Build Action to Content


Reference the other assets a LESS file depends on using following special comment syntax:

// @reference reset.css
// @reference other.less "optional-quoted-filename.css"
// @reference ~/app/relative.css


/* @reference another.css */

Reference paths are relative to the current LESS file.