fix: web demo publish issue.

This commit is contained in:
Zhang Dian 2024-07-10 18:36:51 +08:00
parent a225feeb0d
commit 5b48f77dfb
3 changed files with 12 additions and 4 deletions

View File

@ -11,4 +11,8 @@
<ItemGroup>
<ProjectReference Include="..\Semi.Avalonia.Demo\Semi.Avalonia.Demo.csproj" />
</ItemGroup>
<ItemGroup>
<TrimmerRootDescriptor Include="linker.xml" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,5 @@
<linker>
<assembly fullname="Semi.Avalonia, Version=11.1.0.0, Culture=neutral, PublicKeyToken=null"/>
<assembly fullname="Semi.Avalonia.ColorPicker, Version=11.1.0.0, Culture=neutral, PublicKeyToken=null"/>
<assembly fullname="Semi.Avalonia.DataGrid, Version=11.1.0.0, Culture=neutral, PublicKeyToken=null"/>
</linker>

View File

@ -4,10 +4,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:semi="https://irihi.tech/semi">
<Application.Styles>
<!-- You can still reference in old way.
<StyleInclude Source="avares://Semi.Avalonia/Themes/Index.axaml" />
-->
<semi:SemiTheme Locale="zh-CN"/>
<!-- You can still reference in old way. -->
<!-- <StyleInclude Source="avares://Semi.Avalonia/Themes/Index.axaml" /> -->
<semi:SemiTheme Locale="zh-CN" />
<StyleInclude Source="avares://Semi.Avalonia.DataGrid/Index.axaml" />
<StyleInclude Source="avares://Semi.Avalonia.ColorPicker/Index.axaml" />
</Application.Styles>