You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble writing a unit test that includes a documentation comment containing an <include> element. I tried using AddAdditionalDocument to add the included file to the workspace, and I also tried writing the file to disk. In both cases, the expanded documentation simply included a comment saying the <include> element could not be expanded. See sharwell/StyleCopAnalyzers@93749a8 for an example.
❓ Does the AdhocWorkspace support resolving <include> elements in a documentation comment? If so, where do I place the included file such that it will be located?
If it helps, I was having this same problem and resolved it by supplying an XmlReferenceResolver to the compilation options. Failure to supply one results in the described behavior.
I believe @daveaglick's advice is correct: the compiler/workspace tries to abstract files, and so unless there's a resolver doing something the compiler just will skip them.
I'm having trouble writing a unit test that includes a documentation comment containing an
<include>
element. I tried usingAddAdditionalDocument
to add the included file to the workspace, and I also tried writing the file to disk. In both cases, the expanded documentation simply included a comment saying the<include>
element could not be expanded. See sharwell/StyleCopAnalyzers@93749a8 for an example.❓ Does the
AdhocWorkspace
support resolving<include>
elements in a documentation comment? If so, where do I place the included file such that it will be located?📝 This is part of my work to resolve DotNetAnalyzers/StyleCopAnalyzers#1603.
The text was updated successfully, but these errors were encountered: