Martin Buberl Martin Buberl - 2 months ago 13
Less Question

ASP.NET and Web Tools 2012.2 reference LESS files

I just installed the ASP.NET and Web Tools 2012.2.

It finally provides first-class support for editing LESS files, complete with syntax highlighting, Intellisense, and validation.

My problem is, that my mixins and variables files are in seperate files and bundling is done dynamically, so that Intellisense isn't kicking in for them. How can I add a reference to these files in my LESS files without using

@import
?

Answer

You can add references to your LESS files similar like you would do it for JavaScript files in Visual Studio:

/// <reference path="../../_variables.less" />