From c1d3e8e5ab24995b763907cb0a65694e565f882c Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Mon, 9 Dec 2024 13:54:02 -0500 Subject: [PATCH] [Mono.Android] Add target to build additional API levels Commit e4a75a81 removed some make magic that ensured Mono.Android.dll would be built multiple times for additional supported API levels. A couple of MSBuild tasks used to build multiple versions of Mono.Android.dll have been moved out of the `PackDotNet` target used by the Windows build and into the Mono.Android build to fix this. --- build-tools/scripts/DotNet.targets | 11 ----------- src/Mono.Android/Mono.Android.csproj | 1 + src/Mono.Android/Mono.Android.targets | 13 +++++++++++++ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/build-tools/scripts/DotNet.targets b/build-tools/scripts/DotNet.targets index ba0c6ce8f58..a89515dcbf9 100644 --- a/build-tools/scripts/DotNet.targets +++ b/build-tools/scripts/DotNet.targets @@ -30,17 +30,6 @@ - - - diff --git a/src/Mono.Android/Mono.Android.csproj b/src/Mono.Android/Mono.Android.csproj index c9a8e47ede5..90a35df98f1 100644 --- a/src/Mono.Android/Mono.Android.csproj +++ b/src/Mono.Android/Mono.Android.csproj @@ -400,6 +400,7 @@ $(BuildDependsOn); + _BuildAdditionalApiLevels; _ExportMsxDoc; _CopyToPackDirs; diff --git a/src/Mono.Android/Mono.Android.targets b/src/Mono.Android/Mono.Android.targets index 9b437c6e742..59c8bc2a120 100644 --- a/src/Mono.Android/Mono.Android.targets +++ b/src/Mono.Android/Mono.Android.targets @@ -235,6 +235,19 @@ + + + + +