I have followed the steps at MSDN, and other SO questions, to setup documenting and to have the XML comments show in the descriptions section of the help page. However, I am receiving errors when I try to build or run the project. Visual Studio 2017 no longer has the "Build" selection in properties. It has been replaced by the "Compile" section. While this section does have the "Generate XML documentation file" option, it does not have a XML documentation file location option (as in the MSDN directions). That being said, we know that the XmlDocumentProvider is looking for "~/App_Data/XmlDocument.xml" in the HelpPageConfig.vb file.
First when I run the project it returns with a "No Document Provided" error, because, well, there is no document there. When I create an XML document "XMLDocument.xml" in the App_Data folder an error returns saying "No Root Element Found." After adding a root element no errors are returned; however, no descriptions show up in the help page either.
Setup:
- Confirm AreaRegistration.RegisterAllAreas() is in Application_Start
- Uncommented config.SetDocumentationProvider in HelpPageConfig.vb
- Added comments to all controllers
I've tried:
- Set Copy to Output Directory: Copy if newer
- Variety of root element names (Description, Comments, Root, etc)
Does anyone know what the root element should be, or if there is a way to get VS 2017 to auto-generate the file if it does not exist?