我需要在构建之前从文件“ .less”创建具有标准 CSS 逻辑的“.css”文件。
我尝试dotless.compiler.exe
在文件夹中放置并在 Pre-Build 事件中调用此命令
$(SolutionDir)content\folder\dotless.compiler.exe -m
$(ProjectDir)content\css\site.less $(ProjectDir)content\css\site.css
但得到异常“ command exited with code 3
”。我哪里错了?你能提供另一种方式吗?