Skip to content

Commit 50b230e

Browse files
github-actions[bot]Steve Pfistersteveisokeerhardt
authored
[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 #64361 * Update src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml Co-authored-by: Eric Erhardt <[email protected]> Co-authored-by: Steve Pfister <[email protected]> Co-authored-by: Steve Pfister <[email protected]> Co-authored-by: Eric Erhardt <[email protected]>
1 parent 39f85a4 commit 50b230e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<assembly fullname="System.Net.Http">
33
<type fullname="System.Net.Http.HttpClientHandler">
44
<method signature="System.Boolean get_IsNativeHandlerEnabled()" body="stub" value="false" feature="System.Net.Http.UseNativeHttpHandler" featurevalue="false" />
5+
<method signature="System.Boolean get_IsNativeHandlerEnabled()" body="stub" value="true" feature="System.Net.Http.UseNativeHttpHandler" featurevalue="true" />
56
</type>
67
</assembly>
78
</linker>

0 commit comments

Comments
 (0)