I am guessing that when you include a code into the pre-build event command line (in Build Events tab) VS adds it to some XML file. If so, do you happened to know the XML file name VS updates/creates?
>This is a good thing for your build. You can add things to perform before the build runs, and things after. Go to Project Properties then click on the Build Events tab. Every time you build, the less compiler will fire.
>
>>Ah. Partial workaround :
http://alinconstantin.blogspot.co.uk/2012/08/command-window-and-immediate-window-are.html
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham