I'm working on an ASP.NET website. To the solution I've added another project that serves as a Data Access Layer(DAL). Whenever I build the project the dll file gets refreshed to the new one in the website project.I've put XML comments before each method in all the classes of the DAL. But they're not available when I type the method names of this layer. However they're visible from their own project. Is XML documentation only internal? if so, how can I see other classes' XML comments?
First you need to check the XML documentation file for the output build setting. (properties on your project). Then you will generate the xml documentation that the other project will use when you add a reference to it.
There are 2 ways that you probably are adding the reference.
1.) By choosing "Add reference" then "Project"
2.) By choosing "Add reference" then "BROWSE"...
You should use version 1... Add reference-->Project
If your project file and referenced project file on
<Project Sdk="Microsoft.NET.Sdk">
Try add GenerateDocumentationFile to referenced project
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With