How to get C++ build command from vcxproj via a C# program -
i have microsoft.build.evaluation.project object on specific project. have set correct global properties, according build need.
is there way retrieve programmatically actual command line used when building?
i explain bit need, , maybe have different suggestion: want preprocessed data c/cpp file, , since there may many includes , other stuff in command line, have no information about, effect output itself, thought of taking command line , adding preprocess flag.
to answer underlying question: set vcclcompilertool.generatepreprocessedfile
preprocessyes
.
.keepcomments
may useful.
Comments
Post a Comment