diff --git a/build-tools/create-packs/Directory.Build.targets b/build-tools/create-packs/Directory.Build.targets index 8d2afd0f773..c3e1d2bf301 100644 --- a/build-tools/create-packs/Directory.Build.targets +++ b/build-tools/create-packs/Directory.Build.targets @@ -120,8 +120,6 @@ <_NuGetSources Include="$(OutputPath.TrimEnd('\'))" /> <_PreviewPacks Condition=" '$(AndroidLatestStableApiLevel)' != '$(AndroidLatestUnstableApiLevel)' " Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.Android.Ref.$(AndroidLatestUnstableApiLevel).*.nupkg" /> <_InstallArguments Include="android-aot" /> - - <_InstallArguments Include="android-32" /> <_InstallArguments Include="android-$(AndroidLatestUnstableApiLevel)" Condition=" '@(_PreviewPacks->Count())' != '0' " /> <_InstallArguments Include="--skip-manifest-update" /> <_InstallArguments Include="--verbosity diag" /> diff --git a/build-tools/create-packs/Microsoft.Android.Sdk.proj b/build-tools/create-packs/Microsoft.Android.Sdk.proj index b1c541d17dd..7f5664f6b6d 100644 --- a/build-tools/create-packs/Microsoft.Android.Sdk.proj +++ b/build-tools/create-packs/Microsoft.Android.Sdk.proj @@ -122,10 +122,12 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and $(AndroidPackVersionLong) - <_AndroidRuntimePackId>31 - <_AndroidRuntimePackVersion>31.0.101-preview.11.117 + <_AndroidTargetingPackId>31 + <_AndroidTargetingPackVersion>31.0.101-preview.11.117 + <_AndroidTargetingPackId Condition=" '%24(_AndroidTargetingPackId)' == '' ">$(AndroidLatestStableApiLevel) + <_AndroidTargetingPackVersion Condition=" '%24(_AndroidTargetingPackVersion)' == '' ">**FromWorkload** <_AndroidRuntimePackId Condition=" '%24(_AndroidRuntimePackId)' == '' ">$(AndroidLatestStableApiLevel) <_AndroidRuntimePackVersion Condition=" '%24(_AndroidRuntimePackVersion)' == '' ">**FromWorkload** @@ -135,8 +137,8 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and TargetFramework="$(_AndroidNETAppTargetFramework)" RuntimeFrameworkName="Microsoft.Android" LatestRuntimeFrameworkVersion="%24(_AndroidRuntimePackVersion)" - TargetingPackName="Microsoft.Android.Ref.%24(_AndroidRuntimePackId)" - TargetingPackVersion="%24(_AndroidRuntimePackVersion)" + TargetingPackName="Microsoft.Android.Ref.%24(_AndroidTargetingPackId)" + TargetingPackVersion="%24(_AndroidTargetingPackVersion)" RuntimePackNamePatterns="Microsoft.Android.Runtime.%24(_AndroidRuntimePackId).**RID**" RuntimePackRuntimeIdentifiers="@(_AndroidNETAppRuntimePackRids, '%3B')" Profile="Android" diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.NET.Sdk.Android/WorkloadManifest.in.json b/src/Xamarin.Android.Build.Tasks/Microsoft.NET.Sdk.Android/WorkloadManifest.in.json index 638dda446ef..c762886fc82 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.NET.Sdk.Android/WorkloadManifest.in.json +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.NET.Sdk.Android/WorkloadManifest.in.json @@ -6,26 +6,15 @@ "packs": [ "Microsoft.Android.Sdk", "Microsoft.Android.Ref.31", - "Microsoft.Android.Runtime.31.android-arm", - "Microsoft.Android.Runtime.31.android-arm64", - "Microsoft.Android.Runtime.31.android-x86", - "Microsoft.Android.Runtime.31.android-x64", - "Microsoft.Android.Templates" - ], - "platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ], - "extends" : [ "microsoft-net-runtime-android" ] - }, - "android-32": { - "description": "Support for Android API-32.", - "packs": [ "Microsoft.Android.Ref.32", "Microsoft.Android.Runtime.32.android-arm", "Microsoft.Android.Runtime.32.android-arm64", "Microsoft.Android.Runtime.32.android-x86", - "Microsoft.Android.Runtime.32.android-x64" + "Microsoft.Android.Runtime.32.android-x64", + "Microsoft.Android.Templates" ], "platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ], - "extends" : [ "android" ] + "extends" : [ "microsoft-net-runtime-android" ] }, "android-aot": { "description": ".NET SDK Workload for building Android applications with AOT support.", @@ -49,22 +38,6 @@ "kind": "framework", "version": "31.0.101-preview.11.117" }, - "Microsoft.Android.Runtime.31.android-arm": { - "kind": "framework", - "version": "31.0.101-preview.11.117" - }, - "Microsoft.Android.Runtime.31.android-arm64": { - "kind": "framework", - "version": "31.0.101-preview.11.117" - }, - "Microsoft.Android.Runtime.31.android-x86": { - "kind": "framework", - "version": "31.0.101-preview.11.117" - }, - "Microsoft.Android.Runtime.31.android-x64": { - "kind": "framework", - "version": "31.0.101-preview.11.117" - }, "Microsoft.Android.Ref.32": { "kind": "framework", "version": "@WORKLOAD_VERSION@"