Repository navigation
[release/10.0.1xx] [docs] Fix documentation report warnings - #27023
rolfbjarne merged 2 commits into
Conversation
Document the public AppKit and UIKit thread-check APIs directly instead of inheriting from internal runtime members that the documentation publisher cannot resolve. Give the stream and HTTP handler Dispose overrides self-contained documentation, and make generated Dispose overrides explicitly inherit from NSObject. The latter avoids ambiguous parent lookup for AVAudioSession, which is static on macOS but derives from NSObject on other platforms. Update the binding generator XML documentation expectations for all four platforms. Replace the remaining retired UIView animation recipe link with Apple's UIViewPropertyAnimator documentation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e9330a05-fd4b-42bc-86ac-79e6d92789b4
Clarify that the override forwards disposal to its base handler. The override does not currently close its active stream buckets, so avoid implying that this change guarantees cleanup of all handler-owned resources. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e9330a05-fd4b-42bc-86ac-79e6d92789b4
There was a problem hiding this comment.
🟢 Approval recommended
The changes are limited to documentation and matching snapshots, with no unresolved findings or runtime behavior changes.
No open issues 🎉
4 files not reviewed
tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml: Generated filetests/bgen/tests/ExpectedXmlDocs.iOS.xml: Generated filetests/bgen/tests/ExpectedXmlDocs.macOS.xml: Generated filetests/bgen/tests/ExpectedXmlDocs.tvOS.xml: Generated file
What changed in this PR
Backports #27013 to fix documentation publishing warnings in .NET for Apple platforms without changing runtime behavior.
Changes:
- Replaces unresolved inheritance with direct documentation for thread checks and disposal overrides.
- Explicitly targets
NSObject.Dispose(bool)in generated documentation and updates all four platform snapshots. - Replaces the retired animation recipe link with Apple’s
UIViewPropertyAnimatordocumentation.
| File | Description |
|---|---|
| tests/bgen/tests/ExpectedXmlDocs.tvOS.xml | Updates the expected disposal reference for tvOS. |
| tests/bgen/tests/ExpectedXmlDocs.macOS.xml | Updates the expected disposal reference for macOS. |
| tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml | Updates the expected disposal reference for Mac Catalyst. |
| tests/bgen/tests/ExpectedXmlDocs.iOS.xml | Updates the expected disposal reference for iOS. |
| src/UIKit/UIApplication.cs | Documents UIKit thread checks directly. |
| src/System.Net.Http/CFNetworkHandler.cs | Adds self-contained disposal documentation. |
| src/Foundation/NSUrlSessionHandler.cs | Documents cancellation and resource disposal. |
| src/Compression/Compression.cs | Documents disposal and underlying-stream ownership. |
| src/bgen/Generator.cs | Emits an explicit disposal documentation reference. |
| src/AppKit/NSApplication.cs | Documents AppKit thread checks directly. |
| docs/api/UIKit/UIView.xml | Replaces the retired animation recipe link. |
Review effort: Balanced
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🚀 [CI Build #05550ca] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 200 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
The documentation publishing report contains unresolved references to internal runtime members, unresolved disposal documentation inheritance, and retired animation guidance. Fix the source documentation without changing runtime behavior or editing the generated documentation repository.
The other five reported dead recipe links are already absent from this source checkout. Security.SecKeychain is public and present in the emitted API documentation, so its missing generated references remain a documentation-generation issue rather than requiring a source workaround.
Note
🤖 Pull request created by Copilot
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com
Backport of #27013.