|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
/doc (Process Documentation Comments) (C/C++)
Causes the compiler to process documentation comments in source code files and to create an .xdc file for each source code file that has documentation comments.
The .xdc files are processed into an .xml file with xdcmake.exe. For more information, see.
You can add documentation comments to your source code files. For more information, see.
/doc is not compatible with /clr:oldSyntax. Seefor more information.
To use the generated .xml file with IntelliSense, make the file name of the .xml file the same as the assembly that you want to support and put the .xml file is in the same directory as the assembly. When the assembly is referenced in the Visual Studio project, the .xml file is also found. For more information, seeand .
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see.
Expand the Configuration Properties node.
Expand the C/C++ node.
Select the Output Files property page.
Modify the Generate XML Documentation Files property.
To set this linker option programmatically