Reputation: 41
I followed this MSDN guide for commenting my code.
I discovered i can use external files to achieve the same result in a more clean way.
However, my IntelliSense don't show those comments on Visual Studio (in this case the file is stored in the root of the application, same level of the .sln
file).
screen here
I followed this steps to assure it's not a faulty project:
I've put this code inside this new file:
<docs>
<members name="class1">
<Class1>
<summary> This is a test description </summary>
</Class1>
</members>
</docs>
I've enabled the "XML documentation file" inside the project settings and left the default value (bin\ClassLibrary1.xml
)
/// <include file='docs.xml' path='docs/members[@name="class1"]/Class1/*'
public class Class1 { }
In the compiled bin xml file the summary specified in this file is present and using tools like SandCastle
shows the documentation correctly.
Am I doing something wrong or this is the default behaviour? I searched around the net (especially here) and haven't found a proper solution at the problem.
Upvotes: 4
Views: 316
Reputation: 1662
Given the official answer to user suggestion, it sounds like Visual Studio simply doesn't have such feature as of Visual Studio 2017.
Upvotes: 1