Is there a way to retrieve the commands issued by msbuild without actually running msbuild?
Visual Studio manages to do it somehow (Project properties -> C/C++ -> Command Line), but I need to retrieve that information programatically (to feed it to clang, fyi).
I would be happy with either a command line solution a la "msbuild /givemeyourcommandswithoutactuallyrunningthem" or an add-in solution within Visual Studio.
If there is no direct way, I guess the best solution would be to write a tool that parses the (preprocessed) project file and translates the human-readable options to compiler options, e.g.
<PreprocessorDefinitions>WIN32</PreprocessorDefinitions>
would become
/D "WIN32"
But I'd like to avoid that if possible.