Skip to content

Commit c576579

Browse files
committed
修复 右键菜单图片错误
1 parent 5f32a44 commit c576579

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

KitopiaAvalonia/KitopiaAvalonia.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,15 @@
4242
<AvaloniaResource Include="Assets\FluentSystemIcons-Filled.ttf"/>
4343
<AvaloniaResource Include="Assets\FluentSystemIcons-Regular.ttf"/>
4444
<AvaloniaResource Include="Assets\HarmonyOS_Sans_SC_Regular.ttf"/>
45-
<AvaloniaResource Include="Assets\icon.png"/>
46-
</ItemGroup>
47-
<ItemGroup>
45+
<AvaloniaResource Include="Assets\icon.png" />
46+
47+
<Content Include="Assets\icon.png">
48+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
49+
</Content>
50+
<Content Include="Assets\icon.ico">
51+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
52+
</Content>
53+
4854
<ProjectReference Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' " Include="..\Core.Linux\Core.Linux.csproj"/>
4955
<ProjectReference Condition=" '$(OS)' == 'Windows_NT' " Include="..\Core.Window\Core.Window.csproj"/>
5056
<ProjectReference Condition=" '$(OS)' == 'Windows_NT' " Include="..\ContextMenuDll\ContextMenuDll.csproj"/>

0 commit comments

Comments
 (0)