Show/Hide Toolbars

XSharp

The -ppo option directs the compiler to write the output of the preprocessor to a file.

Syntax

-ppo [+ | -]  

Arguments

+ | - Specifying +, or just -ppo, directs the compiler to write the output of the preprocessor to a file.
When ppo is not enabled then the compiler will delete any existing ppo files that match input file names

Remarks

Each source file will be written to a file with the same base name and an extension of .ppo, in the same directory as the source file. If a .ppo file already exists, it will be overwritten without warning.

Tip:

.ppo files can be viewed within Visual Studio. After enabling The -ppo option and rebuilding the project, select any node in the project in Solution Explorer, click the Show All Files button in the Solution Explorer toolbar, then double click the desired .ppo file node.

 

To view a .prg and .ppo file side-by-side to compare them, right click the document tab in either the .prg or .ppo file and click New Vertical Tab Group.

 

To set this compiler option in the Visual Studio development environment:

 

1.Open the project's Properties page (see How to: Set Build Properties).

2.Click the Build tab.

3.In the Preprocessor section, modify the "Generate preprocessor output"property.

4.Click here to see the property page