I want to create a pre processed file with msbuild for diagnostic reasons. The documentation states, that I just need to call msbuild with the /pp:Filename switch. So I did:
msbuild project.sln /t:Build /p:Configuration=Release /pp:out.txt
It also creates an 'out.txt' file, so the argument obviously has SOME impact, but the file is empty (size 0, no content). So what could be possible reasons the preprocessed project file isn't written correctly? The project file builds fine though.
BTW MSBuild is able to generate a projectfile from any solution. Just set the following environment variable
Set MSBuildEmitSolution=1
and execute
msbuild.exe MySolution.sln.
It will generate a MySolution.sln.metaproj which is able to carry the preprocess parameter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With