Skip to content

Commit bd785e3

Browse files
[Tests] Skip AfterILLinkAdditionalStepsIsSkippedOnSecondBuild on NativeAOT
This test verifies the _RunAfterILLinkAdditionalSteps target and its afterlink/ output. That target is intentionally skipped on the trimmable typemap path (Condition "... '$(_AndroidTypeMapImplementation)' != 'trimmable'"), because the trimmable path generates the typemap at compile time in _GenerateTrimmableTypeMap. The test is unchanged from main and passed only because NativeAOT used to default to the managed typemap. Now that trimmable is the NativeAOT default, the target is skipped and no afterlink/ directory is produced, so skip the NativeAOT case (same pattern as other NativeAOT test skips in this PR). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 94f450c7-781d-4019-a56c-fae1c456b9a7
1 parent 991bc62 commit bd785e3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/IncrementalBuildTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,9 @@ public void AfterILLinkAdditionalStepsIsSkippedOnSecondBuild ([Values (AndroidRu
18471847
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
18481848
return;
18491849
}
1850+
if (IgnoreOnNativeAot (runtime, "the trimmable typemap (the NativeAOT default) generates the typemap at compile time, so `_RunAfterILLinkAdditionalSteps` is intentionally skipped and no `afterlink/` output is produced.")) {
1851+
return;
1852+
}
18501853

18511854
var proj = new XamarinAndroidApplicationProject {
18521855
IsRelease = isRelease,

0 commit comments

Comments
 (0)