-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
To resolve #31422, language was added to two articles to cover how some complex types might be trimmed away.
In the Trimmer article ...
Trimming may have detrimental effects for the published app. In apps that use [reflection](/dotnet/csharp/advanced-topics/reflection-and-attributes/), the IL Trimmer often can't determine the required types for runtime reflection and trim them away. For example, complex framework types for JS interop, such as <xref:System.Collections.Generic.KeyValuePair>, might be trimmed by default and not available at runtime for JS interop calls. In these cases, we recommend creating your own custom types instead.
In the JS interop overview article ...
Complex framework types, such as <xref:System.Collections.Generic.KeyValuePair>, might be [trimmed away by the IL Trimmer on publish](xref:blazor/host-and-deploy/configure-trimmer) and not present for JS interop. We recommend creating custom types for types that the IL Trimmer trims away by default.
@maraf and @lewing ... Two questions ...
-
Is there a complex type that I can swap in for
KeyValuePair
that would still be trimmed away? -
[release/8.0-staging][wasm] remove problematic default settings runtime#112216 is for release 8.0+, correct?
Page URL
Content source URL
Document ID
1487b5e7-a40c-d757-c530-d0e4017f189e
Article author
Metadata
- ID: 2203b81b-1b37-8599-eb50-f6284170d224
- Service: aspnet-core
- Sub-service: blazor
Metadata
Metadata
Assignees
Type
Projects
Status