Open rynowak opened 7 years ago
/cc @alexgav @heejaechang
@rynowak thank you for the reporting. looks like a bug in FileBasedXmlDocumentationProvider http://source.roslyn.io/#Microsoft.CodeAnalysis.Workspaces/Utilities/Documentation/XmlDocumentationProvider.cs,154
Version Used: VS 15.1 (26323.4 vsuwpt)
Steps to Reproduce:
Using the Razor OOP functionality, we're seeing inconsistency in the XML data returned by calls to
ISymbol.GetMemberDocumentationXml()
. When called in the VS process,ISymbol.GetMemberDocumentationXml()
works as-expected. When running in the OOP host, the return values are missing the wrapper element that makes them valid XML.This means that if a member has a
summary
andremarks
defined, then the return value will not be considered valid XML (two root elements).Expected Behavior:
For a type like https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.TagHelpers/AnchorTagHelper.cs#L25
For a member like https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.TagHelpers/AnchorTagHelper.cs#L105::
Actual Behavior:
For a type like https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.TagHelpers/AnchorTagHelper.cs#L25
Note that the
doc
element is not present,summary
is the root node.For a member like https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.TagHelpers/AnchorTagHelper.cs#L105::
Note that the
doc
element is not present, this has two root nodes and is not valid XML.