What's the purpose of xml files next to the dll?

.Netasp.netDll

.Net Problem Overview


For instance, log4net.dll comes with log4net.xml. What's the use of this xml?

.Net Solutions


Solution 1 - .Net

They contain the comments for the code in xml format. They can be used with sandcastle to generate windows help files or MSDN-style html documents.

Solution 2 - .Net

This file contains description of the classes, methods, etc created as xml comments in the assembly.

The Microsoft Docs says:

> The compiler generated XML file can be distributed alongside your .NET > assembly so that Visual Studio and other IDEs can use IntelliSense to > show quick information about types or members. Additionally, the XML > file can be run through tools like DocFX and Sandcastle to generate > API reference websites.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLieven CardoenView Question on Stackoverflow
Solution 1 - .NetKlaus Byskov PedersenView Answer on Stackoverflow
Solution 2 - .NetAndrew BezzubView Answer on Stackoverflow