From 7de11a48b26d76b26df043d519b548a783e471dc Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Fri, 4 Feb 2022 12:38:24 -0500 Subject: [PATCH 1/2] [mobile] Add extra HttpClientHandler linker substitution The linker substitution for HttpClientHandler.IsNativeHandlerEnabled only worked when in a project was set to false. Since the default for MAUI projects is true, this caused us to carry more assemblies than needed. Fixes https://github.com/dotnet/runtime/issues/64361 --- .../System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml b/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml index 5b705abeb24bda..24d1abdfbb17a6 100644 --- a/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml +++ b/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml @@ -3,5 +3,8 @@ + + + From e21ac8ba010f24bd5b310dd132c16e777ab4daf1 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Fri, 4 Feb 2022 11:25:08 -0800 Subject: [PATCH 2/2] Update src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml Co-authored-by: Eric Erhardt --- .../System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml b/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml index 24d1abdfbb17a6..208bba9a30af6c 100644 --- a/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml +++ b/src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml @@ -2,8 +2,6 @@ - -