Skip to content

feat: include XML documentation in NuGet package (#215) - #221

Open
imnasnainaec wants to merge 11 commits into
masterfrom
worktree-agent-a122d43412b38c232
Open

feat: include XML documentation in NuGet package (#215)#221
imnasnainaec wants to merge 11 commits into
masterfrom
worktree-agent-a122d43412b38c232

Conversation

@imnasnainaec

@imnasnainaec imnasnainaec commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enabled GenerateDocumentationFile in Directory.Build.props so all projects emit XML docs.
  • Added .xml to AllowedOutputExtensionsInPackageBuildOutputFolder in icu.net.csproj so the XML file is bundled into the NuGet package for every target framework.
  • Added some build warning exemptions and fill in the rest of the missing docs.

Test plan

  • Build the NuGet package and verify the .xml file is present alongside the .dll in each lib/ folder
  • Reference the package in a test project and confirm IntelliSense summaries appear in Visual Studio

Closes #215

🤖 Generated with Claude Code

Devin review: https://app.devin.ai/review/sillsdev/icu-dotnet/pull/221

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Test Results

       8 files  ±0     648 suites  ±0   8s ⏱️ -1s
   439 tests ±0     435 ✔️ ±0      4 💤 ±0  0 ±0 
3 600 runs  ±0  3 390 ✔️ ±0  210 💤 ±0  0 ±0 

Results for commit 79f5d1e. ± Comparison against base commit 3d97cb2.

♻️ This comment has been updated with latest results.

@imnasnainaec

Copy link
Copy Markdown
Contributor Author

@tombogle Enabling XML docs this way causes ~1700 warnings on the build (e.g., https://github.com/sillsdev/icu-dotnet/actions/runs/26838163661/job/79137608874?pr=221#step:7:11). Should CS1591 be suppressed?

@imnasnainaec
imnasnainaec force-pushed the worktree-agent-a122d43412b38c232 branch 2 times, most recently from 19c3291 to f260616 Compare June 10, 2026 17:05
Comment thread source/icu.net/Character.cs Outdated
Comment thread source/icu.net/Character.cs Outdated
@imnasnainaec
imnasnainaec force-pushed the worktree-agent-a122d43412b38c232 branch from c049e2a to 1d3996d Compare June 10, 2026 22:54
@imnasnainaec

Copy link
Copy Markdown
Contributor Author

URL updates moved to #229 to keep this pr focused on XML docs.

@imnasnainaec
imnasnainaec force-pushed the worktree-agent-a122d43412b38c232 branch from 1d3996d to ca5fa25 Compare June 11, 2026 13:30
imnasnainaec and others added 5 commits June 11, 2026 13:16
- Enable GenerateDocumentationFile in Directory.Build.props so all projects emit XML docs.
- Add .xml to AllowedOutputExtensionsInPackageBuildOutputFolder in icu.net.csproj so the XML file is bundled into the NuGet package for every target framework.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves GenerateDocumentationFile out of Directory.Build.props (which
applies to all projects) and into icu.net.csproj, avoiding spurious
CS1591 warnings in the test projects.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imnasnainaec
imnasnainaec force-pushed the worktree-agent-a122d43412b38c232 branch 2 times, most recently from 53b867a to 197adc0 Compare June 11, 2026 17:21
imnasnainaec and others added 5 commits June 11, 2026 13:24
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
CS1573 only fires when GenerateDocumentationFile is enabled, which is
scoped to icu.net. Suppressing it in Directory.Build.props was applying
it to all projects unnecessarily.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers BreakEnumerator finalizer, CodepageConversion class,
Wrapper.MinSupportedIcuVersion/MaxSupportedIcuVersion, MessageFormatter
class/Dispose/Pattern, and ResourceBundle.Dispose.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…docs

Adds class, UTransDirection enum, and Dispose docs to Transliterator.
Replaces hand-written Dispose() summaries with <inheritdoc/> in
BiDi, BreakIterator, Collator, and RegexMatcher.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imnasnainaec
imnasnainaec force-pushed the worktree-agent-a122d43412b38c232 branch from 23e0631 to 9250187 Compare June 11, 2026 18:09
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imnasnainaec
imnasnainaec force-pushed the worktree-agent-a122d43412b38c232 branch from 9250187 to 79f5d1e Compare June 11, 2026 18:11
@imnasnainaec
imnasnainaec marked this pull request as ready for review June 11, 2026 18:12
@imnasnainaec
imnasnainaec requested a review from tombogle June 11, 2026 18:13
@imnasnainaec imnasnainaec self-assigned this Jun 11, 2026
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.

Package should include XML Docs

2 participants