[release/6.0] [mobile] Add extra HttpClientHandler linker substitution (#64852)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 7 Feb 2022 21:02:07 +0000 (13:02 -0800)
committerGitHub <noreply@github.com>
Mon, 7 Feb 2022 21:02:07 +0000 (13:02 -0800)
commit50b230ee17a3353198c21ccee954a1a2640385ca
tree6d77eaaacfcbbacf84818cf1e48c26c33e078157
parent39f85a4628c246468bb54156a05033a19b5bab4c
[release/6.0] [mobile] Add extra HttpClientHandler linker substitution (#64852)

* [mobile] Add extra HttpClientHandler linker substitution

The linker substitution for HttpClientHandler.IsNativeHandlerEnabled only worked when <UseNativeHttpHandler> 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

* Update src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
Co-authored-by: Steve Pfister <steveisok@users.noreply.github.com>
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml