Skip to content

Improve docs around using NerdbankMessagePackFormatter#1439

Merged
AArnott merged 1 commit into
mainfrom
better-docs
May 20, 2026
Merged

Improve docs around using NerdbankMessagePackFormatter#1439
AArnott merged 1 commit into
mainfrom
better-docs

Conversation

@AArnott
Copy link
Copy Markdown
Member

@AArnott AArnott commented May 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 20, 2026 13:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves guidance and discoverability for configuring NerdbankMessagePackFormatter (especially around PolyType witness classes and serializer customization) by enhancing API docs, DocFX documentation, and adding/adjusting sample code used in the docs.

Changes:

  • Expanded XML docs on NerdbankMessagePackFormatter constructor with remarks, examples, and external references.
  • Updated DocFX extensibility documentation with clearer instructions and embedded code snippets.
  • Added a new samples/Extensibility.cs sample (and adjusted the samples project) to back the documentation snippets.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/StreamJsonRpc/NerdbankMessagePackFormatter.cs Adds richer XML documentation, including example code references and links for TypeShapeProvider/witness classes.
samples/Samples.csproj Multi-targets samples and configures them to run under Microsoft.Testing.Platform with xunit v3.
samples/NativeAOT/SystemTextJson.cs Suppresses CS8892 warning for ignored Main method in sample code.
samples/NativeAOT/NerdbankMessagePack.cs Suppresses CS8892 and refines witness-class comment for the NB MessagePack NativeAOT sample.
samples/Extensibility.cs Introduces a sample used by DocFX/API docs to demonstrate creating/configuring NerdbankMessagePackFormatter.
docfx/docs/extensibility.md Adds more explicit setup guidance and includes sample snippets for NerdbankMessagePackFormatter configuration.

Comment thread src/StreamJsonRpc/NerdbankMessagePackFormatter.cs Outdated
Comment thread src/StreamJsonRpc/NerdbankMessagePackFormatter.cs Outdated
Comment thread samples/Extensibility.cs
Comment thread docfx/docs/extensibility.md
Copilot AI review requested due to automatic review settings May 20, 2026 13:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@AArnott AArnott enabled auto-merge May 20, 2026 15:09
@AArnott AArnott merged commit a5e0be9 into main May 20, 2026
8 of 9 checks passed
@AArnott AArnott deleted the better-docs branch May 20, 2026 16:31
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.

3 participants