Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XML Documentation Sample

This sample shows how to use XML to document code.

This sample contains the source code for the XML Documentation Tutorial.

Building and Running the Sample Within Visual Studio

To build the XML Documentation sample

  1. Open the solution (XMLdoc.sln).
  2. In Solution Explorer, right-click the project and click Properties.
  3. Open the Configuration Properties folder and click Build.
  4. Set the XML Documentation File property to XMLsample.xml.
  5. From the Build menu, click Build. The XML output file will be in the debug directory.

Building and Running the Sample from the Command Line

To build the XML Documentation sample

  1. To generate the sample XML documentation, type the following at the command prompt:
    csc XMLsample.cs /doc:XMLsample.xml
  2. To see the generated XML, issue the following command:
    type XMLsample.xml

See Also

XML Documentation Tutorial | Tutorial Samples

© 2015 Microsoft