ASP.NET MVC3: post excludes my CSS (without) file

Initially, I had my css.less file called Site.less.css , so the smart type is active. Which works well.

I recently needed to use the @import "Site.less"; . And, unfortunately, this does not work with .css at the end, because it will treat it as a CSS file, and not pass inactive parameters.

However, with the name Site.less , the publish (to IIS) function does not include this file. I assume this is due to an unrecognized file type? It is included in my solution explorer and therefore must copy it!

How can I copy it with the publication? (I can do it manually, but don't have to do it every time)

+6
source share
1 answer

Are the properties of the ".less" file equal to "content"?

enter image description here

+22
source

Source: https://habr.com/ru/post/907475/


All Articles