In VS <= 2015 we can use WebEssentials extension that takes care for compiling the less/sass files for us, but currently it does not support VS 2017. Are you aware of sim
There is now also a less specific compiler. https://github.com/madskristensen/LessCompiler