Automatically replace <inheritdoc /> tags with inherited documentation at build time. Integrates with MSBuild, so no command line tool or VS add-on is required.
$ dotnet add package SauceControl.InheritDocThis MSBuild Task automatically replaces <inheritdoc /> tags in your .NET XML documentation with the actual inherited docs.
Add some <inheritdoc /> tags to your XML documentation comments.
This tool’s handling of <inheritdoc /> tags is based on the design document used for Roslyn's support in Visual Studio, which is in turn based on the <inheritdoc /> support in Sandcastle Help File Builder (SHFB).
Add the SauceControl.InheritDoc NuGet package reference to your project.
This is a development-only dependency; it will not be deployed with or referenced by your compiled app/library.
Build your project as you normally would.
The XML docs will be post-processed automatically with each non-debug build, whether you use Visual Studio, dotnet CLI, or anything else that hosts the MSBuild engine.
Updates the contents of inherited docs to replace param and typeparam names that changed in the inheriting type or member.
Supports trimming your published XML doc files of any types or members not publicly visible in your API.
Validates your usage of <inheritdoc /> and warns you if no documentation exists or if your crefs or paths are incorrect.
For more details and examples, see the project home page