Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 665
Martin Buberl Avatar asked Mar 18 '13 17:03

Martin Buberl


1 Answers

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

/// <reference path="../../_variables.less" />
like image 138
Martin Buberl Avatar answered Nov 13 '22 08:11

Martin Buberl