Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 14, 2025

Summary

This PR fixes code comments inheritance issues in the Threading library by removing conflicting <include> tags and keeping only <inheritdoc/> tags for proper documentation inheritance.

Problem

The current implementation had both <include> tags referencing XML build output files and <inheritdoc/> tags on the same methods, causing conflicts that prevented DocFX from properly inheriting XML documentation comments from the interface methods.

Solution

  • Removed all <include> tags that referenced bin\Release\netstandard2.0\Platform.Threading.xml
  • Kept only <inheritdoc/> tags for clean documentation inheritance from ISynchronization interface methods
  • Applied changes to both ReaderWriterLockSynchronization and Unsynchronization classes

Files Changed

  • csharp/Platform.Threading/Synchronization/ReaderWriterLockSynchronization.cs
  • csharp/Platform.Threading/Synchronization/Unsynchronization.cs

Benefits

  • ✅ DocFX will now properly inherit XML documentation from interface methods
  • ✅ Cleaner documentation generation without conflicts
  • ✅ Follows .NET documentation inheritance best practices
  • ✅ Resolves related issue DocFX failed to inherit XML documentation comments #11 about DocFX inheritance failures

Testing

The changes maintain all existing <inheritdoc/> tags (8 total) while removing problematic <include> tags that caused inheritance conflicts.

Fixes #10

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #10
@konard konard self-assigned this Sep 14, 2025
- Remove all <include> tags that reference build output XML files
- Keep only <inheritdoc/> tags for proper documentation inheritance from ISynchronization interface
- This resolves issues with DocFX failing to inherit XML documentation comments
- Affects ReaderWriterLockSynchronization and Unsynchronization classes

Fixes #10

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] Set up code comments inheritance Fix code comments inheritance by removing conflicting <include> tags Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up code comments inheritance

2 participants