Skip to content

Commit 1fd4d05

Browse files
committed
disable trimming for non avalonia assemblies
1 parent 9f0da3b commit 1fd4d05

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

ArcExplorer/ArcExplorer.csproj

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010
<PropertyGroup>
1111
<PublishTrimmed>true</PublishTrimmed>
12-
<TrimMode>Link</TrimMode>
12+
<TrimMode>partial</TrimMode>
1313
<PublishSingleFile>true</PublishSingleFile>
1414
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
1515
</PropertyGroup>
@@ -32,6 +32,18 @@
3232
<PackageReference Include="SerilogTimings" Version="3.0.1" />
3333
<PackageReference Include="Dotnet.Bundle" Version="*" Condition="$(RuntimeIdentifier.StartsWith('osx'))" />
3434
</ItemGroup>
35+
<ItemGroup>
36+
<TrimmableAssembly Include="Avalonia" />
37+
<TrimmableAssembly Include="Avalonia.Controls.DataGrid" />
38+
<TrimmableAssembly Include="Avalonia.Controls.ItemsRepeater" />
39+
<TrimmableAssembly Include="Avalonia.Desktop" />
40+
<TrimmableAssembly Include="Avalonia.ReactiveUI" />
41+
<TrimmableAssembly Include="Avalonia.Themes.Simple" />
42+
<TrimmerRootAssembly Include="Octokit" />
43+
<TrimmerRootAssembly Include="Serilog" />
44+
<TrimmerRootAssembly Include="Serilog.Sinks.File" />
45+
<TrimmerRootAssembly Include="SerilogTimings" />
46+
</ItemGroup>
3547
<ItemGroup>
3648
<ProjectReference Include="..\SmashArcNet\SmashArcNet\SmashArcNet.csproj" />
3749
</ItemGroup>

0 commit comments

Comments
 (0)