Skip to content

Commit 7b9257a

Browse files
authored
838410:[Dotnet] ignore include tag when importing comments from xml (#672)
1 parent 85b17ed commit 7b9257a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Debug
2727
/mdoc/mdoc.Test/UwpTestWinRtComponentCpp/x64/Release
2828
/mdoc.Test.Cplusplus/x64/Release
2929
/x64/Release/UwpTestWinRtComponentCpp
30+
/mdoc/Properties/launchSettings.json

mdoc/Mono.Documentation/Updater/DocUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public static bool ClearNodesIfNotDefault(XmlNode n, XmlNode incoming, int depth
323323
{
324324
if (nchild == null) continue;
325325

326-
if (nchild is XmlComment || nchild is XmlText || nchild is XmlCDataSection)
326+
if (nchild is XmlComment || nchild is XmlText || nchild is XmlCDataSection || nchild.Name == "include")
327327
{
328328
nchild.ParentNode.RemoveChild(nchild);
329329
removed = true;

0 commit comments

Comments
 (0)