diff --git a/build-tools/create-packs/Directory.Build.targets b/build-tools/create-packs/Directory.Build.targets index 97717c96a03..919eed46832 100644 --- a/build-tools/create-packs/Directory.Build.targets +++ b/build-tools/create-packs/Directory.Build.targets @@ -67,6 +67,7 @@ + @@ -76,6 +77,7 @@ + diff --git a/build-tools/create-packs/Microsoft.Android.Runtime.Managed.proj b/build-tools/create-packs/Microsoft.Android.Runtime.Managed.proj new file mode 100644 index 00000000000..16d8ac4ae79 --- /dev/null +++ b/build-tools/create-packs/Microsoft.Android.Runtime.Managed.proj @@ -0,0 +1,48 @@ + + + + + android + Microsoft.Android.Runtime.$(AndroidApiLevel).$(AndroidRID) + Microsoft.Android runtime components for API $(AndroidApiLevel). Please do not reference directly. + <_AndroidRuntimePackAssemblyPath>runtimes\$(AndroidRID)\lib\net6.0 + + + + + _GetRuntimePackItems; + _GetDefaultPackageVersion; + _GenerateFrameworkListFile; + $(BeforePack); + + + + + + $(IntermediateOutputPath)$(AndroidRID)\RuntimeList.xml + + + + <_AndroidRuntimePackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\Java.Interop.dll" /> + <_AndroidRuntimePackAssemblies Include="$(_MonoAndroidNETOutputDir)Mono.Android.dll" /> + + <_AndroidRuntimePackAssemblies Include="$(XAInstallPrefix)xbuild-frameworks\Microsoft.Android\net6.0-android$(AndroidLatestStableApiLevel)\Mono.Android.Export.dll" /> + + + + + <_PackageFiles Include="@(_AndroidRuntimePackAssemblies)" PackagePath="$(_AndroidRuntimePackAssemblyPath)" TargetPath="$(_AndroidRuntimePackAssemblyPath)" /> + <_PackageFiles Include="@(_AndroidRuntimePackAssemblies->'%(RelativeDir)%(Filename).pdb')" PackagePath="$(_AndroidRuntimePackAssemblyPath)" /> + + + + diff --git a/build-tools/create-packs/Microsoft.Android.Runtime.proj b/build-tools/create-packs/Microsoft.Android.Runtime.proj index b314fc7a87d..7adf26ea123 100644 --- a/build-tools/create-packs/Microsoft.Android.Runtime.proj +++ b/build-tools/create-packs/Microsoft.Android.Runtime.proj @@ -13,8 +13,7 @@ projects that use the Microsoft.Android framework in .NET 5. android-arm64 arm64-v8a-net6 Microsoft.Android.Runtime.$(AndroidApiLevel).$(AndroidRID) - Microsoft.Android runtime components for API $(AndroidApiLevel). Please do not reference directly. - <_AndroidRuntimePackAssemblyPath>runtimes\$(AndroidRID)\lib\net6.0 + Microsoft.Android runtime components for API $(AndroidApiLevel) and RID $(AndroidRID). Please do not reference directly. <_AndroidRuntimePackNativePath>runtimes\$(AndroidRID)\native @@ -34,20 +33,13 @@ projects that use the Microsoft.Android framework in .NET 5. - <_AndroidRuntimePackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\Java.Interop.dll" /> - <_AndroidRuntimePackAssemblies Include="$(_MonoAndroidNETOutputDir)Mono.Android.dll" /> - - <_AndroidRuntimePackAssemblies Include="$(XAInstallPrefix)xbuild-frameworks\Microsoft.Android\net6.0-android$(AndroidLatestStableApiLevel)\Mono.Android.Export.dll" /> <_AndroidRuntimePackAssets Include="$(XAInstallPrefix)xbuild\Xamarin\Android\lib\$(AndroidABI)\libmono-android.debug.so" /> <_AndroidRuntimePackAssets Include="$(XAInstallPrefix)xbuild\Xamarin\Android\lib\$(AndroidABI)\libmono-android.release.so" /> <_AndroidRuntimePackAssets Include="$(XAInstallPrefix)xbuild\Xamarin\Android\lib\$(AndroidABI)\libxamarin-debug-app-helper.so" /> - - <_PackageFiles Include="@(_AndroidRuntimePackAssemblies)" PackagePath="$(_AndroidRuntimePackAssemblyPath)" TargetPath="$(_AndroidRuntimePackAssemblyPath)" /> - <_PackageFiles Include="@(_AndroidRuntimePackAssemblies->'%(RelativeDir)%(Filename).pdb')" PackagePath="$(_AndroidRuntimePackAssemblyPath)" /> <_PackageFiles Include="@(_AndroidRuntimePackAssets)" PackagePath="$(_AndroidRuntimePackNativePath)" TargetPath="$(_AndroidRuntimePackNativePath)" IsNative="true" /> diff --git a/build-tools/create-packs/Microsoft.Android.Sdk.proj b/build-tools/create-packs/Microsoft.Android.Sdk.proj index 6d2669cc8f8..7f16b3cea75 100644 --- a/build-tools/create-packs/Microsoft.Android.Sdk.proj +++ b/build-tools/create-packs/Microsoft.Android.Sdk.proj @@ -98,7 +98,6 @@ core workload SDK packs imported by WorkloadManifest.targets. - <_AndroidNETAppTargetFramework>net6.0 Microsoft.Android.Sdk.BundledVersions.targets diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets index d5c8a110f8b..daa89f81e43 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets @@ -28,5 +28,16 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and RuntimePackRuntimeIdentifiers="android-arm;android-arm64;android-x86;android-x64" Profile="Android" /> + diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.targets index f914dba459a..636753bc3a6 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.targets @@ -20,6 +20,12 @@ Pack="false" PrivateAssets="All" /> + 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 ad29fdd0746..a43a2129ff2 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 @@ -7,6 +7,7 @@ "Microsoft.Android.Sdk", "Microsoft.Android.Ref.31", "Microsoft.Android.Ref.32", + "Microsoft.Android.Runtime.32.android", "Microsoft.Android.Runtime.32.android-arm", "Microsoft.Android.Runtime.32.android-arm64", "Microsoft.Android.Runtime.32.android-x86", @@ -53,6 +54,10 @@ "kind": "framework", "version": "@WORKLOAD_VERSION@" }, + "Microsoft.Android.Runtime.32.android": { + "kind": "framework", + "version": "@WORKLOAD_VERSION@" + }, "Microsoft.Android.Runtime.32.android-arm": { "kind": "framework", "version": "@WORKLOAD_VERSION@"