Repository navigation
Mark RenderFragment serialization API as experimental - #68230
Merged
dariatiurina merged 1 commit intoAug 6, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request marks the RenderTreeBuilder.SetAttributeValue API (used to support RenderFragment serialization across render mode boundaries) as experimental, so external consumers get an explicit diagnostic when they call it.
Changes:
- Annotate
RenderTreeBuilder.SetAttributeValue(int frameIndex, object? value)with[Experimental("ASP0032", ...)]. - Suppress the new
ASP0032warning at the internal call site inRenderFragmentCapture. - Extend the diagnostics documentation to include
ASP0032.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Components/Shared/src/RenderFragmentCapture.cs | Suppresses ASP0032 around the internal usage of SetAttributeValue. |
| src/Components/Components/src/Rendering/RenderTreeBuilder.cs | Marks SetAttributeValue as experimental via ExperimentalAttribute using diagnostic ID ASP0032. |
| docs/list-of-diagnostics.md | Updates the documented ASP diagnostic range and adds the ASP0032 entry. |
ilonatommy
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mark RenderFragment serialization API as experimental
Marks the public
RenderTreeBuilder.SetAttributeValueAPI as experimental.Description
Per the API review for #66828, the
RenderTreeBuilder.SetAttributeValue(int frameIndex, object? value)method should ship as experimental. It is a low-level infrastructure API, and marking it experimental allows its shape to change in the future without a breaking change.The API remains public and functionally unchanged; callers outside the framework now receive the
ASP0032experimental diagnostic and must explicitly opt in.Breaking Changes
None.
SetAttributeValueis an unshipped (preview) API. Consumers who reference it will now see theASP0032experimental warning and need to acknowledge it, but there is no source or behavioral break for shipped APIs.Fixes #66828