Uh oh!
There was an error while loading. Please reload this page.
Emit version 2 for NativeAOT managed data descriptor - #132211
Merged
max-charlamb merged 1 commit intoAug 12, 2026
Merged
Conversation
Keep the ILC-generated managed type sub-descriptor compatible with the frozen .NET 11 data descriptor format. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 95c4aedd-f09e-42d7-8c9f-f439297576a6
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
1 similar comment
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
Contributor
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the NativeAOT (ILC-emitted) managed contract sub-descriptor JSON to advertise data descriptor version 2 so it’s accepted by the .NET 11 cDAC DataContractReader tooling, which rejects versions older than 2.
Changes:
- Bump the emitted JSON
"version"field inManagedDataDescriptorNodefrom0to2to match the frozen .NET 11 contract descriptor format.
Uh oh!
There was an error while loading. Please reload this page.
jkotas
approved these changes
Aug 12, 2026
max-charlamb
enabled auto-merge (squash)
August 12, 2026 15:03
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Summary
Update the ILC-generated NativeAOT managed type sub-descriptor to emit data descriptor version 2.
.NET 11 data contracts were frozen in #131858, which updated the reader to reject descriptors older than version 2. The separate NativeAOT managed descriptor writer was missed and continued emitting version 0. As a result, the matching DataContractReader packages reject NativeAOT binaries produced from the same build, preventing cDAC initialization.
Testing
Internal cDAC dump and end-to-end tests exposed this issue across Windows and Linux architectures with:
Unsupported data descriptor version '0'. Expected version 2.This change aligns the NativeAOT sub-descriptor with the frozen descriptor format.