Tuesday, December 9, 2008

Building XML documentation from XML comments

From Visual studio 2005:
1. In Solution Explorer, right click on the project and then click Properties.
2. In project properties window select build tab on the left side.
3. In build properties window, check XML documentation file checkbox of output properties.
The XML output file will be in debug/release directory.

From Command Prompt:
Type the below commnad in command promt:
csc [FileName.cs] /doc: [OutputFileName.xml]
Ex: csc XMLsample.cs /doc:XMLsample.xml

No comments: