-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Net.Quic is not trimmed on mobile platforms #46915
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsSystem.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
There is
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsSystem.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
There is
|
Tagging subscribers to 'size-reduction': @eerhardt, @SamMonoRT, @marek-safar Issue DetailsSystem.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
There is
|
What needs to happen to fix this? Note, S.N.Quic is also supported on Linux and eventually on MacOS as well. |
I think the initial thinking is to change The idea being that vertical app models that want to disable/trim certain features can set these feature switches in their MSBuild Sdk files. So here Xamarin can set |
The I suspect what we want is something like a single |
Ideally, the code would be pulled only when needed. For example when http version is set to 3 or higher. If that's not possible then we resort to static property like that but that has a tax on developers to know about it. We could also PNSE the code on the platforms where the code won't be supported anytime soon (e.g. Browsers).
These are only a few platforms we support. |
I mentioned that because the original issue description above said
|
This makes sense. We are only calling into System.Net.Quic from the HttpConnectionPool ctor in order to check whether it's supported or not. We can easily defer this check. |
@eerhardt - trying to find the right owner for this. Is that someone on your team ? |
I changed System.Net.Quick to be PNSE assembly so this should no longer be a concern for mobile |
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
There is
IsSupported
property but it does not conform to the recommended Feature switch setup so it cannot be used either.@eerhardt @karelz
The text was updated successfully, but these errors were encountered: