0

I have a Microsoft.Build.Evaluation.Project object on a specific project. I have set the correct global properties, according to the build i need.

Is there a way to retrieve programmatically the actual command line which will be used when building?

I will explain a bit what i need, and maybe you will have a different suggestion: I want to get the preprocessed data from c/cpp file, and since there may be many includes and other stuff in the command line, which i have no information about, which will effect the output itself, I thought of taking the command line and just adding the preprocess flag.

4

1 回答 1

0

要回答基本问题:设置VCCLCompilerTool.GeneratePreprocessedFilepreprocessYes.

.KeepComments可能有用。

于 2014-09-23T09:07:31.210 回答