Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Intellisense Tooltip Support for Library (dll)

How it is possible to provide the XML comments I've created in my Classes (in Library) for intellisense?

I've added to each method XML Comments like:

    /// <summary>
    /// Do some connection request...
    /// </summary>
    /// <param name="val">Required for xyz...</param>
    public void Connect(int val)
    {
        // Some code...
    }

Then I have marked the checkbox for create "XML documentation file" and give it a name "MyAssembly.xml". Rebuild my solution (one dll and one XML file are created). Added the dll to another c# project, but the intellisense there doesn't show my XML comments... What I'm doing wrong?

like image 634
user1011394 Avatar asked Sep 28 '12 12:09

user1011394


1 Answers

The only way I was able to replicate your error was by giving the XML file a different name than the actual generated assembly.

Can you verify that the only difference between your assembly name and the XML name is the file extension? The easiest way to do this is in the output folder where the EXE or DLL is created.

This was tested with C# and VS2010. I hope it helps.

like image 133
Jason Avatar answered Oct 02 '22 14:10

Jason