Summary is not showing in the assembly if it is added as a reference

C#.NetVisual StudioXml Documentation

C# Problem Overview


I've created a 'Class Library' in C#, which has many functions with summary (XML documentation comments).

For example

///<summary>
///Adds the two numbres
///</summary>
public void Add()
{
    //statements
}

if i use the function in the same namespace , its showing the summary, but if i added it as reference in some ohter workspace(solution) its not showing the summary.

How to make it visible i other solutions if a added it as a reference, and wat may be the reason for this?

C# Solutions


Solution 1 - C#

  1. Go to the solution explorer of your source code. Right click on the project name and go the properties.
  2. go to the Build tab if you are using c# and select the check box Xml documentation file.
  3. When you build your source code the Xml file will be generated in the location where your dll is present.
  4. while copy your dll to the solution copy the xml file and paste into the bin of your destination solution.

Solution 2 - C#

You need to generate XML documentation for the assembly (a file named myassembly.xml) and copy it alongside your .dll where it's referenced by your other projects. See this page in MSDN for instructions.

Solution 3 - C#

When you compile classes that have xml comment, normally a .xml file is created. (check the options in Visual Studio)

When you add a reference to such an assembly, make sure the XML file is present. The documentation is not contained within the assembly but within the xml file.

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
QuestionThorin OakenshieldView Question on Stackoverflow
Solution 1 - C#PushparajView Answer on Stackoverflow
Solution 2 - C#JonView Answer on Stackoverflow
Solution 3 - C#TimothyPView Answer on Stackoverflow