From 7fe6b5b2fdea730658a9957da357ca5868c99158 Mon Sep 17 00:00:00 2001 From: Max Charlamb <44248479+max-charlamb@users.noreply.github.com> Date: Wed, 12 Aug 2026 10:06:07 -0400 Subject: [PATCH] Emit version 2 for NativeAOT managed data descriptor 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 --- .../Compiler/DependencyAnalysis/ManagedDataDescriptorNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ManagedDataDescriptorNode.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ManagedDataDescriptorNode.cs index 696810e9629cc7..c8930fa8c6d339 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ManagedDataDescriptorNode.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ManagedDataDescriptorNode.cs @@ -98,7 +98,7 @@ private static byte[] BuildJsonDescriptor(NodeFactory factory) using (var writer = new Utf8JsonWriter(stream)) { writer.WriteStartObject(); - writer.WriteNumber("version", 0); + writer.WriteNumber("version", 2); writer.WriteString("baseline", "empty"); writer.WriteStartObject("types");