Tried both for regular CSS:

<link rel="stylesheet" href="App_Themes/DefaultTheme/Main.less"/> 

This approach does not give any results, styles are not visible to the page elements.

How to make the right connection LESS?

1 answer 1

Because less is not css. The default type is text/css .

Basically, you can try to make

 <link rel="stylesheet" type="text/less" ... 

but, most likely, browsers will ignore this too.

It is necessary to compile less on the server and connect the compiled css file to the page.