From 26803f791dba40f26e9f3e7a5746a1fd4c8d40a1 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 10 Dec 2020 15:19:40 +0100 Subject: [PATCH] [dotnet] Set default runtime feature switches. (#10250) Set all current feature switches, except for InvariantGlobalization, to defaults which trim the features. Ref: https://github.com/dotnet/runtime/blob/master/docs/workflow/trimming/feature-switches.md Ref: https://github.com/xamarin/xamarin-android/pull/5337 This drops the hello world app size from 28.6 MB to 23.5 MB. Full report: https://gist.github.com/rolfbjarne/71cc18b49446862f1d42aa29526b0ac6 --- dotnet/targets/Xamarin.Shared.Sdk.targets | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index b0b00af711..44c3f8e392 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -112,6 +112,17 @@ $(_BundlerDebug) + + + false + false + false + false + false + true