Closed
Description
Android application type
.NET Android (net7.0-android, net8.0-android, etc.)
Affected platform version
.NET 8, 9, etc.
Description
If you use the project settings:
<TrimMode>link</TrimMode>
<AndroidHttpClientHandlerType>MyNamespace.MyCustomHandler</AndroidHttpClientHandlerType>
In this case, nothing would preserve MyCustomHandler
and it would be trimmed away.
Steps to Reproduce
Use project settings above.
Did you find any workaround?
You could use either [DynamicDependency]
or [DynamicallyAccessedMembers]
to preserve the type. You could also instantiate the handler in code.
Relevant log output
No response