Questions tagged [dotless]

.less (pronounced dot-less) is a .NET port of the funky Less JavaScript library Lovingly ported by Christopher Owen, Erik van Brakel, Daniel Hoelbling, James Foster and Luke Page

.less (pronounced dot-less) is a .NET port of the funky Less JavaScript library lovingly ported by Christopher Owen, Erik van Brakel, Daniel Hoelbling, James Foster and Luke Page. You can read more about .less at: http://www.dotlesscss.org/

Installation

.less can most easily be installed through its NuGet package:

Install-Package dotless

Links

Differences between Less.js and .less

Though .less is a .NET port of the Less JS library, they do have some differences in terms of the functionalities offered. These differences are described in the official .less GitHub page.

155 questions
4
votes
2 answers

Chirpy LESS choking on "filter" css property, other misc errors

I recently installed Chirpy v2.01 for Visual Studio 2010 and am very excited about the features it offers. I'm running into some issues in the LESS domain, however. As a first step, I copied over my existing .css file to a new LESS file. I…
YWCA Hello
  • 2,997
  • 4
  • 29
  • 40
4
votes
1 answer

dotless: how to process a list of LESS files using dotless.Compiler.exe

I wanted to know how to process a list of LESS files using the exe binaries, for example: ./dotless.Compiler.exe -m *.less Right now I only can do individual files, but can't do wildcard. The reason why I asked about this is that I want to create a…
Grace Huang
  • 5,355
  • 5
  • 30
  • 52
4
votes
1 answer

Passing parameters to less file in command line

I am using dotless.compiler.exe in my solution and passing below command in post build event of solution properties. $(SolutionDir)\packages\dotless.1.1.0\Tools\dotless.Compiler.exe -m "$(ProjectDir)\content*.less" "$(ProjectDir)\content*.css" My…
nari447
  • 834
  • 2
  • 11
  • 25
4
votes
3 answers

Dotless MVC bundling issue when importing same less file twice

Im trying to accomplish following structure using dotless: styles/variables.less - contains, well, all variables like below @color:green; styles/component1.less - some random component specific style which imports variables.less @import…
Varinder
  • 2,634
  • 1
  • 17
  • 20
4
votes
1 answer

Empty Bundle using MS Bundling

I am using asp.net mvc4 and the built in bundling and minification that is provided by MS using the System.Web.Optimization library (1.1.0) with a custom LessTransform using dotless. The site is hosted in IIS 7. My problem is that intermittently…
drneel
  • 2,887
  • 5
  • 30
  • 48
4
votes
1 answer

LESS integration in ASP.Net MVC

As far as I understand there are different solutions to handle .less files in a ASP.Net MVC application, including: dot-less Web Essentials So far I'm working in an environment where Web Essentials is already installed and automatically compiles…
sdabet
  • 18,360
  • 11
  • 89
  • 158
4
votes
1 answer

Site.less' is a physical path, but a virtual path was expected

I all I am using DotLess with a LessTransformer.cs I found online, In my MVC 4 project. using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Web.Optimization; using…
JTGrime
  • 53
  • 6
4
votes
2 answers

dotless css reference not working in release mode (with Combress)

i'm using dotless css. This is my code .jqmWindowBig { width: 800px; height: 500px; margin-left: -400px; margin-top: -250px; .jqmWindowCommon; } .jqmWindowCommon { background-color: #EEE; color: #333; border: 1px…
Michel
  • 23,085
  • 46
  • 152
  • 242
4
votes
0 answers

How to handle less files in Web Optimization when running in debug mode?

I'm using Web Optimization and dotLess to bundle and transform less files to css. When running in debug mode Web Optimization is not using the bundled file but referring to the original files which is fine, except that I now have links to the…
jweber
  • 589
  • 5
  • 16
4
votes
1 answer

DotLess @import

I'm trying to separate my CSS files by moving variables + mix-ins to a new CSS file. I'm also using MVC 4 site hosted in Azure if that is an issue. At the very top of my CSS file that uses the mix-ins, I have: @import "theme.less.css"; However, it…
Alex Guerin
  • 2,336
  • 10
  • 36
  • 53
4
votes
1 answer

Dotless on Appharbor

I am having a huge issues with DotLess on AppHarbor. I have setup my web.config correctly according to dotless but my .less files are always giving a 404 error. I have made sure that the files are built as content, that there is a mime-type and…
Reaction21
  • 661
  • 1
  • 5
  • 18
3
votes
4 answers

Visual studio - dotless.compiler

I need from file ".less" create ".css" file with standart CSS logic before build. I tried drop dotless.compiler.exe at folder and at Pre-Build event call this command $(SolutionDir)content\folder\dotless.compiler.exe -m…
Mess
  • 31
  • 1
  • 2
3
votes
1 answer

DotLess (.less) master.less file for variables and functions

Is there any way to utilize a master.less file to house all of the necessary config parameters for .less? I've got the following variables that I currently have to put at the top of each .less file in my solution. /* DOTLESS VARIABLES AND REUSABLE…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
3
votes
1 answer

ERROR Could not load type 'dotless.Core.configuration.WebConfigConfigurationLoader' from assembly 'dotless.Core, Version=1.5.3.0

I am working with asp.net MVC application(.net framework 4.6.1), I want to use the bundle for .less files so I register the bundles in BundleConfig file as follows public static void RegisterBundles(BundleCollection bundles) { //other bundles…
Neeraj Kumar Gupta
  • 2,157
  • 7
  • 30
  • 58
3
votes
0 answers

Why am I getting a "expected '}' but found '{'" error in dotless?

I have tried to append the values using +_ in less, but it throws the error expected '}' but found '{' in the dotless compiler. What did I miss? .gradient(@brow){ @{brow}+_: ~"; background: @{brow}linear-gradient(top"; // some…
Yahwe Raj
  • 1,947
  • 5
  • 25
  • 37
1 2
3
10 11