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 Question is can I pass some parameters to less files in this command ?
AFAIK the answer is no. Dotless compiler does not allow you to pass variables in. The only way you can pass variables into a less file is via a querystring parameter when you directly reference to the less file in your page.
Example
<link rel="stylesheet" href="styles.less?bacon=true" />