From 559e225bd6c22abfb3a231212721a25bfd6d3d92 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Mon, 22 Aug 2022 13:00:26 -0500 Subject: [PATCH] [release/6.0.4xx] fix support for $(AotAssemblies) property After 48f6b301 went in, building with `$(AotAssemblies)` can fail: Microsoft.Android.Sdk.Aot.targets(26,33): error MSB4236: The SDK 'Microsoft.NET.Runtime.MonoAOTCompiler.Task' specified could not be found. This pack was renamed to: Microsoft.NET.Runtime.MonoAOTCompiler.Task.net6 We only need to know the name of this pack due to supporting the old `$(AotAssemblies)` property: `$(RunAOTCompilation)` is the new property that is handled by the Mono workload. For now we can change the names here, but should consider dropping the `$(AotAssemblies)` property in a future release. --- .../targets/Microsoft.Android.Sdk.Aot.targets | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets index cac685b8837..81c93315f7f 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets @@ -23,11 +23,11 @@ They run in a context of an inner build with a single $(RuntimeIdentifier). https://github.com/dotnet/runtime/blob/69711860262e44458bbe276393ea3eb9f7a2192a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets.in#L20-L25 --> - - - - - + + + + +