From 471da9f51b4d39d4655f6beb916b867f0e3c11a6 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 14 Jan 2021 14:37:50 +0100 Subject: [PATCH] [dotnet] Don't AOT compile resource assemblies. (#10418) Xamarin.iOS don't AOT compile resource assemblies, so we shouldn't do so in .NET either (and in any case they end up causing native linking failures due to duplicate native symbols). --- dotnet/targets/Xamarin.Shared.Sdk.targets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 44c3f8e392d..0d1832f8df6 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -336,6 +336,9 @@ <_AssembliesToAOT Include="@(ResolvedFileToPublish)" Condition="'%(Extension)' == '.dll' Or '%(Extension)' == '.exe' " /> + + <_AssembliesToAOT Remove="@(ReferenceSatellitePaths)" /> + <_AssembliesToAOT Remove="@(ResourceCopyLocalItems)" />