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
$(ProjectDir)content\css\site.less $(ProjectDir)content\css\site.css
but get exception "command exited with code 3
". Where am I wrong? Can you offer another way?
I was also getting error -3. My problem was that my files were under source control and were locked so the compiler could not overwrite css file. So, your problem might also be that your css file that needs to be overwritten is locked.