3

We have a MVC 4.5 app and it has a bunch of LESS files. VS2013/Web Essentials does a fantastic job of compiling the LESS files to CSS as long as I am in VS. We had a new designer join our team and he is not too keen on using VS and I dont blame him. We have psake build scripts that build our project using MSBuild, so we can give him a powershell script to build the application on his machine without opening VS but surprisingly the LESS files are not getting compiled into CSS when built by MSBuild.

Is there any way I can use the same tools that Web Essentials uses to compile the Less files from the command line?

1
  • Did you ever find any kind of solution for this? I found this article marthijnvandenheuvel.com/2012/11/21/… which points out how to create a custom msbuild task which I'm going to try. Commented Feb 27, 2015 at 10:46

1 Answer 1

1

Alternative solution, use DotLess (http://www.dotlesscss.org/) for build time compiles. I have it compiling our LESS files using a VS post-build event. Though, guess this could conflict with Web Essentials, not sure who will run last. Currently not using Web Essentials.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.