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

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

ruby - How do I merge two hashes into a hash of arrays? -