In recent times I annotated my entire large C# project with XML documentation, and I also made heavy use of the inheritdoc notation (for example when we are overriding a base class method). Imagine my surprise and horror when I looked at the resulting XML and found that it actually said "inheritdoc". That is: the XML didn't inherit the text (the whole point of doing this) but just put an inherit element in there.
As a small-time nerd who wants to do my own XML-to-HTML conversion: how can I make it actually copy the text (as inheritdoc suggests)? I can't understand the meaning of inheritdoc in an XML file, because (given the C# source code, and complicated rules around types and parsing) you might be able to determine what inherits from what, but given the XML alone, you have no clue.
I just want an XML file with all my comments, and where I wrote 'inherit' in the source, I want that text copied in the docs output. Wow!
/// <inheritdoc />since many years and the output created by Sandcastle is as expected a copy of the original documentationTry to distance yourself from your favourite tools and "Sandcastle"Perhaps you could look at howSandcastlehandles it and copy that same approach for your homebrew?<inheritdoc>tags are resolved in the quick info. Similarly, Sandcastle, VSdocman (I'm the author) and other tools will resolve these and other tags, such as<include>, in the generated documentation. If you want to create your own XML to HTML conversion tool, which is exactly what Sandcastle and VSdocman do, you need to handle these cases yourself.because (given the C# source code, and complicated rules around types and parsing) you might be able to determine what inherits from what, but given the XML alone, you have no clue. Exactly. That's why all other tools, including IntelliSense, need to have also the source code or compiled DLL.