Skip to content

[release/11.0-preview4] Source code updates from dotnet/dotnet#127418

Merged
lewing merged 4 commits intorelease/11.0-preview4from
darc-release/11.0-preview4-fc6d5772-ad96-4a2e-861f-40d0c2998897
Apr 28, 2026
Merged

[release/11.0-preview4] Source code updates from dotnet/dotnet#127418
lewing merged 4 commits intorelease/11.0-preview4from
darc-release/11.0-preview4-fc6d5772-ad96-4a2e-861f-40d0c2998897

Conversation

@dotnet-maestro
Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the VMR
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/dotnet

Updated Dependencies

  • From 5.7.0-1.26211.102 to 5.7.0-1.26224.122
    • Microsoft.CodeAnalysis
    • Microsoft.CodeAnalysis.Analyzers
    • Microsoft.CodeAnalysis.CSharp
    • Microsoft.Net.Compilers.Toolset
  • From 11.0.100-preview.4.26211.102 to 11.0.100-preview.4.26224.122
    • Microsoft.CodeAnalysis.NetAnalyzers
    • Microsoft.DotNet.ApiCompat.Task
    • Microsoft.NET.Workload.Emscripten.Current.Manifest-11.0.100.Transport
  • From 11.0.0-beta.26211.102 to 11.0.0-beta.26224.122
    • Microsoft.DotNet.Arcade.Sdk
    • Microsoft.DotNet.Build.Tasks.Archives
    • Microsoft.DotNet.Build.Tasks.Feed
    • Microsoft.DotNet.Build.Tasks.Installers
    • Microsoft.DotNet.Build.Tasks.Packaging
    • Microsoft.DotNet.Build.Tasks.TargetFramework
    • Microsoft.DotNet.Build.Tasks.Templating
    • Microsoft.DotNet.Build.Tasks.Workloads
    • Microsoft.DotNet.CodeAnalysis
    • Microsoft.DotNet.GenAPI
    • Microsoft.DotNet.GenFacades
    • Microsoft.DotNet.Helix.Sdk
    • Microsoft.DotNet.PackageTesting
    • Microsoft.DotNet.RemoteExecutor
    • Microsoft.DotNet.SharedFramework.Sdk
    • Microsoft.DotNet.XliffTasks
    • Microsoft.DotNet.XUnitExtensions
  • From 0.11.5-preview.26211.102 to 0.11.5-preview.26224.122
    • Microsoft.DotNet.Cecil
  • From 3.2.2-beta.26211.102 to 3.2.2-beta.26224.122
    • Microsoft.DotNet.XUnitAssert
  • From 2.9.3-beta.26211.102 to 2.9.3-beta.26224.122
    • Microsoft.DotNet.XUnitConsoleRunner
  • From 11.0.0-preview.4.26211.102 to 11.0.0-preview.4.26224.122
    • Microsoft.NET.Sdk.IL
    • Microsoft.NETCore.App.Ref
    • Microsoft.NETCore.ILAsm
    • runtime.native.System.IO.Ports
    • System.Reflection.Metadata
    • System.Reflection.MetadataLoadContext
    • System.Text.Json
  • From 7.6.0-rc.21202 to 7.7.0-rc.22522
    • NuGet.Frameworks
    • NuGet.Packaging
    • NuGet.ProjectModel
    • NuGet.Versioning
  • From 3.0.0-preview.4.26211.102 to 3.0.0-preview.4.26224.122
    • System.CommandLine
  • From 19.1.0-alpha.1.26173.1 to 19.1.0-alpha.1.26208.2
    • runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
    • runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
    • runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
    • runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
    • runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
    • runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
    • runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools
    • runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang
    • runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
    • runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
  • From 11.0.0-alpha.1.26173.2 to 11.0.0-alpha.1.26208.5
    • runtime.linux-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.linux-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.osx-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.osx-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.win-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport
    • runtime.win-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport

Associated changes in source repos

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/dotnet:48bd87d899e187fe0e4e2b81a7b4a65a37845213..https://github.com/dotnet/runtime:darc-release/11.0-preview4-fc6d5772-ad96-4a2e-861f-40d0c2998897

Updated Dependencies:
Microsoft.CodeAnalysis, Microsoft.CodeAnalysis.Analyzers, Microsoft.CodeAnalysis.CSharp, Microsoft.Net.Compilers.Toolset (Version 5.7.0-1.26211.102 -> 5.7.0-1.26224.122)
Microsoft.CodeAnalysis.NetAnalyzers, Microsoft.DotNet.ApiCompat.Task, Microsoft.NET.Workload.Emscripten.Current.Manifest-11.0.100.Transport (Version 11.0.100-preview.4.26211.102 -> 11.0.100-preview.4.26224.122)
Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Archives, Microsoft.DotNet.Build.Tasks.Feed, Microsoft.DotNet.Build.Tasks.Installers, Microsoft.DotNet.Build.Tasks.Packaging, Microsoft.DotNet.Build.Tasks.TargetFramework, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.Build.Tasks.Workloads, Microsoft.DotNet.CodeAnalysis, Microsoft.DotNet.GenAPI, Microsoft.DotNet.GenFacades, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.PackageTesting, Microsoft.DotNet.RemoteExecutor, Microsoft.DotNet.SharedFramework.Sdk, Microsoft.DotNet.XliffTasks, Microsoft.DotNet.XUnitExtensions (Version 11.0.0-beta.26211.102 -> 11.0.0-beta.26224.122)
Microsoft.DotNet.Cecil (Version 0.11.5-preview.26211.102 -> 0.11.5-preview.26224.122)
Microsoft.DotNet.XUnitAssert (Version 3.2.2-beta.26211.102 -> 3.2.2-beta.26224.122)
Microsoft.DotNet.XUnitConsoleRunner (Version 2.9.3-beta.26211.102 -> 2.9.3-beta.26224.122)
Microsoft.NET.Sdk.IL, Microsoft.NETCore.App.Ref, Microsoft.NETCore.ILAsm, runtime.native.System.IO.Ports, System.Reflection.Metadata, System.Reflection.MetadataLoadContext, System.Text.Json (Version 11.0.0-preview.4.26211.102 -> 11.0.0-preview.4.26224.122)
NuGet.Frameworks, NuGet.Packaging, NuGet.ProjectModel, NuGet.Versioning (Version 7.6.0-rc.21202 -> 7.7.0-rc.22522)
System.CommandLine (Version 3.0.0-preview.4.26211.102 -> 3.0.0-preview.4.26224.122)
runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools (Version 19.1.0-alpha.1.26173.1 -> 19.1.0-alpha.1.26208.2)
runtime.linux-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.linux-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.osx-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.osx-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.win-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.win-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport (Version 11.0.0-alpha.1.26173.2 -> 11.0.0-alpha.1.26208.5)
[[ commit created by automation ]]
Avoid ProjectReference pruning errors for shared framework Extensions assemblies in the affected test projects and generated trimming test projects.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

Suppress IL2026 for the Newtonsoft.Json.JsonConvert.SerializeObject call in EventSourceLoggerTest, which reports that the API has RequiresUnreferencedCodeAttribute and can break functionality when trimming application code.

Mark the ILCompiler CoreDisTools content item with ExcludeFromSingleFile="$(PublishSingleFile)" to fix NETSDK1236 from ILCompiler_inbuild.csproj where single-file bundle generation excluded coredistools.dll even though it was expected to be included.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lewing lewing added the Servicing-approved Approved for servicing release label Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Copilot Code Review — PR #127418

Note

This review was generated by Copilot.

Holistic Assessment

Motivation: This PR is a release branch backflow containing three logical changes: (1) an automated dependency version bump from build 311857, (2) fixes for single-file publish and trim warnings in ILCompiler/ILTrim, and (3) fixes for ProjectReference pruning warnings in Extensions test projects. All three are well-justified build/CI fixes.

Approach: The fixes are targeted and minimal. ExcludeFromSingleFile prevents native DLLs from being bundled into a single-file executable (where they can't be loaded), the #pragma suppression is correctly scoped with a tracking issue, and the pruning fixes remove redundant AdditionalProjectReferences that are already transitively available.

Summary: ✅ LGTM. The non-automated changes are small, correct, and well-scoped. No new public API surface is introduced. The eng/common changes come from the Arcade SDK sync and should not be manually reviewed.


Detailed Findings

✅ ILCompiler ExcludeFromSingleFile fix — Correct approach for native libraries

The three Content items in ILCompiler.props (CoreDisTools, jitinterface, clrjit) are native .dll/.so libraries that cannot be loaded from inside a single-file bundle. Adding ExcludeFromSingleFile="$(PublishSingleFile)" is the standard MSBuild pattern to exclude them only during single-file publish. The CoreDisTools item was also reformatted from child-element style to attribute style for consistency with the other two items — this is fine.

✅ Removal of System.Reflection.Metadata PackageReference from ILTrim projects — Redundant dependency

Both ILTrim.Core.csproj and ILTrim.csproj target $(NetCoreAppToolCurrent) where System.Reflection.Metadata ships inbox as part of the framework. The explicit PackageReference was redundant. The transitive dependency graph (via ILCompiler.TypeSystem etc.) also does not rely on it as a package — confirmed no PackageReference for SRM in the referenced projects.

✅ IL2026 suppression in EventSourceLoggerTest.cs — Correctly scoped

The #pragma warning disable IL2026 is narrowly scoped to the single JsonConvert.SerializeObject call in test code, with a tracking issue (#126862) for follow-up. This is the right pattern for suppressing trim warnings in test code where the serialized types are known to be safe at runtime.

✅ Extensions test pruning fixes — Correct removal of redundant references

  • Microsoft.Extensions.Hosting.TrimmingTests.proj: Removed Microsoft.Extensions.Hosting.Abstractions from AdditionalProjectReferences — it's already a transitive dependency via Microsoft.Extensions.Hosting.
  • Microsoft.Extensions.Options.TrimmingTests.proj: Removed Microsoft.Extensions.Options from AdditionalProjectReferences — similarly transitively available.
  • Microsoft.Extensions.Hosting.Abstractions.Tests.csproj: Added NU1511 suppression with a clear comment explaining the NuGet limitation (NuGet/Home#14121).

✅ Automated dependency updates — Standard backflow

The eng/Version.Details.props, eng/Version.Details.xml, eng/Versions.props, global.json, and eng/common/ changes are all automated updates from the dotnet/dotnet backflow (build 311857). The eng/common/ files are synced from dotnet/arcade and should not be manually modified — verified these are part of the automated commit.

Generated by Code Review for issue #127418 ·

@lewing
Copy link
Copy Markdown
Member

lewing commented Apr 28, 2026

/ba-g timeout is unrelated

@lewing lewing merged commit 7e66cd7 into release/11.0-preview4 Apr 28, 2026
181 of 198 checks passed
@lewing lewing deleted the darc-release/11.0-preview4-fc6d5772-ad96-4a2e-861f-40d0c2998897 branch April 28, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-codeflow for labeling automated codeflow Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants