Reputation: 12367
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?
Upvotes: 5
Views: 3246
Reputation: 1188
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>
Upvotes: 1
Reputation: 4572
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
Upvotes: 6