Commit 23dfb5c
[NativeAOT] Reference the designer assembly before rooting it for ILC
ILC only loads assemblies passed to it as references; _Microsoft.Android.Resource.Designer is a
compile-time reference but not in @(IlcReference), so rooting it via TrimmerRootAssembly alone
fails: ilc error 'Failed to load assembly _Microsoft.Android.Resource.Designer'. Add it to
@(IlcReference) too, driven off @(ReferencePath) filtered to the designer so nothing is
referenced/rooted when the designer assembly was not generated. @(IlcReference) is ignored by
ILLink, so the CoreCLR trimmable path only gets the root.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6d63994 commit 23dfb5c
1 file changed
Lines changed: 16 additions & 5 deletions
File tree
- src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
446 | 454 | | |
447 | 455 | | |
448 | 456 | | |
449 | 457 | | |
450 | 458 | | |
451 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
452 | 463 | | |
453 | 464 | | |
454 | 465 | | |
0 commit comments