Reputation: 2228
Using the steps described here, the XML file gets generated and the intellisense tooltips work.
However, the XML file only contains the comments in the root file (SomeClass.cs in the example below).
How can I generate the XML files for the classes in sub-folders (SomeInnerClass1.cs & SomeInnerClass2.cs)?
Upvotes: 0
Views: 669
Reputation: 6218
Have you tried to build or rebuild the project after you added the sub folders and class, and the result is successful like ‘1 succeeded, 0 failed, 0 skipped’? I tried to create your class structure as below steps and the XML file auto generate the corresponding comments in all class file and the intellisense and tooltip also works fine.
Create a new .NET Core Class Library project and add root class, subfolder and sub class like yours
Right click the project name and Properties-Build and check the option ‘XML document file’ and save
Add a method into each class file and add the comment above those methods and save
Build or rebuild the project and click ‘Show All Files’ icon under Solution Explorer and go to bin-debug-netstandard1.6 folder to open the *xml file, then you will find the comments for those methods like the following screenshot:
Add another project under the same solution and add reference with the above .NET Core Class Library project
Go to Startup.cs file and you will find the intellisense works fine for each class no matter it is under root folder or sub folder as below:
Upvotes: 1