5

What's the purpose of the .xml documentation files shipped with the assemblies (.dll files).

I know, how to build a one (as here, for example), but what can they be used for?

Also, if this documentation can be integrated into the MS Visual Studio environment, how should that be done?

2 Answers 2

12

If you put the XML file in the same folder as the DLL, Visual Studio will show descriptions in IntelliSense. (including parameter tooltips)

Sign up to request clarification or add additional context in comments.

Comments

5

Using the xml documentation with the recommended tags greatly improves the readability of code when they are used by external classes.

Also, you can generate a help document from the xml comments using tools like Sandcastle. This tool generates a chm file that is very similar to the documentation that you see on msdn for .NET classes.

As for the integration into Visual Studio environment, it is done automatically and happens as soon as you build you project. While using the documented class / method / property, the Intellisense feature shows the xml comments.

In addition, free Visual Studio tools like Ghost Doc (from SubMain) allow you to generate most of the tags simply by using key board shortcuts!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.