Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you invoke the Visual Studio Preprocessor from the command line?

I want to implement the solution using the pre-processor described here:

Reuse define statement from .h file in C# code

Bonus points if you can point me to the docs at MSDN. I'm having trouble finding them...

like image 341
Corey Trager Avatar asked Oct 31 '08 16:10

Corey Trager


1 Answers

Use the /P option to cl.exe ... see MSDN

like image 124
Rob Walker Avatar answered Sep 20 '22 02:09

Rob Walker