Skip to content

[main] Update dependencies from dotnet/dotnet#10873

Open
dotnet-maestro[bot] wants to merge 4 commits intomainfrom
darc-main-2b39dd91-77e1-464a-b705-d70468416845
Open

[main] Update dependencies from dotnet/dotnet#10873
dotnet-maestro[bot] wants to merge 4 commits intomainfrom
darc-main-2b39dd91-77e1-464a-b705-d70468416845

Conversation

@dotnet-maestro
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Mar 2, 2026

This pull request updates the following dependencies

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

…301.4

On relative base path root
Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100-preview.3 From Version 11.0.100-preview.3.26124.102 -> To Version 11.0.0-preview.3.26151.104
Microsoft.DotNet.Build.Tasks.Feed From Version 11.0.0-beta.26124.102 -> To Version 11.0.0-beta.26151.104
Microsoft.DotNet.Cecil From Version 0.11.5-preview.26124.102 -> To Version 0.11.5-preview.26151.104
Microsoft.NET.ILLink , Microsoft.NETCore.App.Ref From Version 11.0.0-preview.3.26124.102 -> To Version 11.0.0-preview.3.26151.104
Microsoft.NET.Sdk , Microsoft.NET.Workload.Emscripten.Current.Manifest-11.0.100-preview.3 , Microsoft.TemplateEngine.Authoring.Tasks From Version 11.0.100-preview.3.26124.102 -> To Version 11.0.100-preview.3.26151.104
In .NET 11, the SDK's ILLink target now populates ResolvedFileToPublish
with linked assemblies (via _LinkedResolvedFileToPublish) WITHOUT
RuntimeIdentifier metadata. Our _AndroidComputeIlcCompileInputs target
adds the same items WITH RuntimeIdentifier, but the ->Distinct() call in
_PrepareNativeAotAndroidAppInputs keeps the first occurrence — the one
from ILLink without the metadata.

The _ComputeFilesToPublishForRuntimeIdentifiers fixup (which stamps
RuntimeIdentifier on items that lack it) cannot help here because it runs
in its target body, after all DependsOnTargets complete — but the error
occurs inside the NativeCompile dependency chain, before the fixup runs.

Fix: add an Update operation on _PrivateAndroidNaotResolvedAssemblyFiles
that stamps RuntimeIdentifier on any items missing it, matching the
pattern already used in _ComputeFilesToPublishForRuntimeIdentifiers.

Fixes: XAGNALLAS7009
@jonathanpeppers jonathanpeppers added the copilot `copilot-cli` or other AIs were used to author this label Mar 2, 2026
In .NET 11, the SDK's ILLink target now populates ResolvedFileToPublish
with linked assemblies via _LinkedResolvedFileToPublish. Our
_AndroidComputeIlcCompileInputs target then adds the same assemblies
again, creating duplicates.

These duplicates flow to the outer build's ProcessAssemblies task (which
doesn't deduplicate), then to GetPerArchAssemblies which throws a
duplicate key exception for the same assembly name within an architecture.

Fix by removing any ILLink-added items from ResolvedFileToPublish before
re-adding them with explicit RuntimeIdentifier metadata. This is
backwards compatible - on older SDKs the Remove is a no-op.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot `copilot-cli` or other AIs were used to author this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant