Skip to content

[release/6.0] [mobile] Add extra HttpClientHandler linker substitution - #64852

Merged
safern merged 2 commits into
release/6.0from
backport/pr-64818-to-release/6.0
Feb 7, 2022
Merged

[release/6.0] [mobile] Add extra HttpClientHandler linker substitution#64852
safern merged 2 commits into
release/6.0from
backport/pr-64818-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Feb 5, 2022

Copy link
Copy Markdown
Contributor

Backport of #64818 to release/6.0

/cc @steveisok

Customer Impact

The default MAUI app does not use SocketsHttpHandler by default, but due to a missing linker substitution will still carry related assemblies. This results in an app that carries an extra 1MB more than it should.

To fix, we an additional linker substitution when the <UseNativeHttpHandler> setting is true.

Testing

Manually verified the correct assemblies were being trimmed.

Risk

Very low

Steve Pfisterand others added 2 commits February 5, 2022 18:18
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
…mobile.xml
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
@ghostghost added the linkable-framework Issues associated with delivering a linker friendly framework label Feb 5, 2022
@ghost

ghost commented Feb 5, 2022

Copy link
Copy Markdown

Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #64818 to release/6.0

/cc @steveisok

Customer Impact

Testing

Risk

Author:github-actions[bot]
Assignees:-
Labels:

linkable-framework

Milestone:-

@ghostghost added the area-System.Net label Feb 5, 2022

@eerhardteerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@steveisoksteveisok added the Servicing-consider Issue for next servicing release review label Feb 7, 2022
@marek-safarmarek-safar added this to the 6.0.x milestone Feb 7, 2022
@steveisoksteveisok added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 7, 2022
@steveisok

Copy link
Copy Markdown
Member

Approved by tactics over email.

@safern
safern merged commit 50b230e into release/6.0Feb 7, 2022
@safern
safern deleted the backport/pr-64818-to-release/6.0 branch February 7, 2022 21:02
@ghostghost locked as resolved and limited conversation to collaborators Mar 10, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Netlinkable-frameworkIssues associated with delivering a linker friendly frameworkServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@steveisok@eerhardt@marek-safar@safern