Skip to content

Commit b3d64ad

Browse files
committed
Enabled application trimming for .NET Native
1 parent 78b492d commit b3d64ad

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

samples/MvvmSampleUwp/Properties/Default.rd.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@
1717

1818
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
1919
<Application>
20-
<!--
21-
An Assembly element with Name="*Application*" applies to all assemblies in
22-
the application package. The asterisks are not wildcards.
23-
-->
24-
<Assembly Name="*Application*" Dynamic="Required All" />
25-
26-
27-
<!-- Add your application specific runtime directives here. -->
2820

21+
<!-- Refit support for the Reddit service -->
22+
<Type Name="MvvmSample.Core.Services.IRedditService" Dynamic="Required All" />
23+
<Namespace Name="Refit.Implementation" Dynamic="Required All" />
24+
25+
<!-- JSON models -->
26+
<Type Name="MvvmSample.Core.Models.PostsQueryResponse" Dynamic="Required Public" />
27+
<Type Name="MvvmSample.Core.Models.PostListing" Dynamic="Required Public" />
28+
<Type Name="MvvmSample.Core.Models.PostData" Dynamic="Required Public" />
29+
<Type Name="MvvmSample.Core.Models.Post" Dynamic="Required Public" />
30+
31+
<!-- IRecipient<T> registration support -->
32+
<Type Name="Microsoft.Toolkit.Mvvm.Messaging.IMessengerExtensions" Dynamic="Required All" />
2933

3034
</Application>
3135
</Directives>

0 commit comments

Comments
 (0)