Commit 9198f63
Bump to dotnet/dotnet@a66d14e1fc 11.0.100-preview.3.26151.104 (#10873)
Changes: dotnet/dotnet@36ea4de...a66d14e
* Update dependencies from https://github.com/dotnet/dotnet build 20260301.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
## NativeAOT changes in this PR
Fixes a crash (XAAMP7004: Duplicate assembly key) in NativeAOT builds
caused by upstream changes in .NET 11 (dotnet/runtime#111514). The
SDK's ILLink target now populates ResolvedFileToPublish with linked
assemblies, creating duplicates that weren't there before.
### Fix 1: RemoveDuplicates in _ComputeFilesToPublishForRuntimeIdentifiers (AssemblyResolution.targets)
The **outer build** collects ResolvedFileToPublish from each RID's
inner build. Multiple targets (ILLink, NativeAOT runtime, Android)
independently add the same assemblies. Added <RemoveDuplicates> before
returning to the outer build, which doesn't use Distinct() since items
from different RIDs must be kept.
### Fix 2: Stamp RuntimeIdentifier on linked assemblies (NativeAOT.targets)
In the **inner build**, ILLink populates ResolvedFileToPublish via
_LinkedResolvedFileToPublish WITHOUT RuntimeIdentifier metadata.
_AndroidComputeIlcCompileInputs adds the same items WITH
RuntimeIdentifier, but ->Distinct() keeps the first occurrence
(missing metadata). Added an Update to stamp RuntimeIdentifier on any
items that lack it, since we're in the inner build with a single RID.
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>1 parent 3087ddd commit 9198f63
File tree
4 files changed
+43
-24
lines changed- eng
- src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets
4 files changed
+43
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
206 | 215 | | |
207 | 216 | | |
208 | 217 | | |
| |||
0 commit comments