I am creating a DLL in C#, using VS 2010, and I have created XML comments for all of its members. When I build the DLL, how do I generate the XML file that will provide Intellisense for the DLL? Thanks for your help.
To generate an XML documentation file from documentation comments in the code, use the /doc option with the csc.exe C# compiler. When you build the project, an XML file will be produced by the compiler with a name corresponding to the project name (e.g. XMLDocumentation. dll -> XMLDocumentation.
In Visual Studio, open the File menu and select New > File. Or, use the Ctrl+N keyboard shortcut. In the New File dialog box, select XML Schema and then select Open. A new file is created.
To insert XML comments for a code element Type /// in C#, or ''' in Visual Basic.
The only way I know to do this is on the line right above your method just type "///" and it will generate a comment template based on the method.
In the project properties page, go to the Build tab. In the Output section near the bottom there's a check-box labelled "XML documentation file" that needs to be checked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With