Skip to content

Commit 4acdd6d

Browse files
committed
Add configuration for trimming and R2R
1 parent d996872 commit 4acdd6d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

samples/BlazorHybrid/BlazorHybrid.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<IlcArg Include="--nometadatablocking" />
2020
</ItemGroup>
2121

22-
<ItemGroup Condition="$(PublishReadyToRun) == true">
22+
<ItemGroup Condition="$(PublishReadyToRun) == true and $(PublishTrimmed) == true">
2323
<TrimmerRootDescriptor Include="ILLink.Descriptors.xml" />
2424
</ItemGroup>
2525

samples/BlazorHybrid/ILLink.Descriptors.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
<assembly fullname="System.Private.CoreLib">
33
<type fullname="System.StubHelpers.InterfaceMarshaler" />
44
</assembly>
5+
<assembly fullname="WinFormsComInterop">
6+
<type fullname="WinFormsComInterop.WebView2.ICoreWebView2Wrapper" />
7+
</assembly>
8+
<assembly fullname="BlazorHybrid">
9+
<type fullname="BlazorHybrid.Counter" />
10+
</assembly>
511
</linker>

0 commit comments

Comments
 (0)