From 6abece9c9439451f3074908e2e9885ce8812bbaf Mon Sep 17 00:00:00 2001 From: Ivan Povazan Date: Wed, 26 Jul 2023 17:40:05 +0200 Subject: [PATCH 1/2] Set DynamicCodeSupport=false to enable trimming for platforms which do not support dynamic code --- dotnet/targets/Xamarin.Shared.Sdk.targets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 297a8548eecf..1399a54a1911 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -140,6 +140,8 @@ false true + + false false From 15c35b4366b4a3d49a40ed3d6a88986f88a4254b Mon Sep 17 00:00:00 2001 From: Ivan Povazan <55002338+ivanpovazan@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:55:44 +0200 Subject: [PATCH 2/2] Inlcude maccatalyst when specifying DynamicCodeSupport=false, exclude watchOS as it is not supported on dotnet Co-authored-by: Rolf Bjarne Kvinge --- dotnet/targets/Xamarin.Shared.Sdk.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 1399a54a1911..c790c216f2db 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -141,7 +141,7 @@ false true - false + false false