Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC3: Publishing is excluding my CSS (.less) file

Originally I had my css .less file named Site.less.css so that intelligent type is active. Which worked fine.

I've recently needed to use the @import "Site.less"; ability. And unfortunately this doesn't work with .css on the end, because that would treat it as a CSS file, and not pass the .less parameters.

However, with the name Site.less, the publish (to IIS) feature is not including this file. I assume this is to do with an unrecognised file type? It is included in my solution explorer, and so should be copying it!

How do I get it to copy with publish? ( I can do it manually but shouldn't have to do this every time)

like image 699
IAmGroot Avatar asked Feb 02 '12 11:02

IAmGroot


1 Answers

Are the ".less" file properties set to "content"?

enter image description here

like image 137
Chris S Avatar answered Sep 22 '22 08:09

Chris S