Skip to content

Commit 26c419a

Browse files
committed
Updates
1 parent 463afd3 commit 26c419a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

aspnetcore/blazor/host-and-deploy/configure-trimmer.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ To address lost types, consider adopting one of the following approaches.
9898

9999
Custom types aren't trimmed by Blazor when an app is published, so we recommend using custom types for JS interop, JSON serialization/deserialization, and other operations that rely on reflection.
100100

101-
The following modifications create a StringKeyValuePair type for use by the component.
101+
The following modifications create a `StringTuple` type for use by the component.
102102

103103
`StringTuple.cs`:
104104

@@ -111,7 +111,7 @@ public sealed class StringTuple(string item1, string item2)
111111
}
112112
```
113113

114-
The component is modified to use the StringKeyValuePair type:
114+
The component is modified to use the `StringTuple` type:
115115

116116
```diff
117117
- private List<Tuple<string, string>> items = [];
@@ -152,13 +152,6 @@ private List<Tuple<string, string>> items = [];
152152

153153
### Use a Root Descriptor
154154

155-
<!-- REVIEW NOTE: Per https://github.com/dotnet/aspnetcore/issues/52947#issuecomment-3165135697,
156-
we have coverage for the ILLink file. We also have [DynamicDependency] covered.
157-
158-
However, we don't have coverage on 'rd.xml', and IDK what that even is. Is that
159-
file something we need to cover here?
160-
-->
161-
162155
A [Root Descriptor](/dotnet/core/deploying/trimming/trimming-options#root-descriptors) can preserve the type.
163156

164157
Add an `ILLink.Descriptors.xml` file to the root of the app&dagger; with the type:

0 commit comments

Comments
 (0)