Martin Buberl
Martin Buberl

Reputation: 47144

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?

Upvotes: 5

Views: 467

Answers (1)

Martin Buberl
Martin Buberl

Reputation: 47144

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

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

Upvotes: 8

Related Questions