Skip to content

System.Net.Quic is not trimmed on mobile platforms #46915

@marek-safar

Description

@marek-safar

System.Net.Quic is not supported except on Windows but still cannot be trimmed because it's initialized aggressively via static constructors even on platforms that don't support it like iOS or android. Initialization chain is like

	  at System.Net.Quic.Implementations.MsQuic.Internal.MsQuicApi:.ctor
	  at System.Net.Quic.Implementations.MsQuic.Internal.MsQuicApi:.cctor
	  at System.Net.Quic.Implementations.MsQuic.MsQuicImplementationProvider:get_IsSupported
	  at System.Net.Http.HttpConnectionPool:.ctor
	  at System.Net.Http.HttpConnectionPoolManager:SendAsyncCore
	  at System.Net.Http.HttpConnectionPoolManager:SendAsync
	  at System.Net.Http.HttpConnectionHandler:SendAsync

There is IsSupported property but it does not conform to the recommended Feature switch setup so it cannot be used either.

@eerhardt @karelz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions