Skip to content

Commit 3e20cba

Browse files
authored
Use same icon for all binaries; fix #25 (#26)
1 parent 03c28e4 commit 3e20cba

File tree

9 files changed

+13
-12
lines changed

9 files changed

+13
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="Publish GameInv-WPF" type="DotNetFolderPublish" factoryName="Publish to folder">
3-
<riderPublish configuration="Release" delete_existing_files="true" include_all_content_for_self_extract="true" include_native_libs_for_self_extract="true" platform="Any CPU" produce_single_file="true" runtime="win-x64" self_contained="true" target_folder="$PROJECT_DIR$/GameInv-WPF/bin/Release/net9.0/win-x64/publish" target_framework="net9.0-windows" uuid_high="-1248814020808521624" uuid_low="-4842757618690330912" />
3+
<riderPublish configuration="Release" delete_existing_files="true" include_native_libs_for_self_extract="true" platform="Any CPU" produce_single_file="true" ready_to_run="true" runtime="win-x64" self_contained="true" target_folder="$PROJECT_DIR$/GameInv-WPF/bin/Release/net9.0/win-x64/publish" target_framework="net9.0-windows" uuid_high="-1248814020808521624" uuid_low="-4842757618690330912" />
44
<method v="2" />
55
</configuration>
66
</component>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="Publish GameInv" type="DotNetFolderPublish" factoryName="Publish to folder">
3-
<riderPublish configuration="Release" delete_existing_files="true" include_all_content_for_self_extract="true" include_native_libs_for_self_extract="true" platform="Any CPU" produce_single_file="true" runtime="win-x64" self_contained="true" target_folder="$PROJECT_DIR$/bin/Release/net9.0/win-x64/publish" target_framework="net9.0" trim_unused_assemblies="true" uuid_high="-6544252972830602690" uuid_low="-8149852761577840996" />
3+
<riderPublish configuration="Release" delete_existing_files="true" include_native_libs_for_self_extract="true" platform="Any CPU" produce_single_file="true" runtime="win-x64" self_contained="true" target_folder="$PROJECT_DIR$/bin/Release/net9.0/win-x64/publish" target_framework="net9.0" trim_unused_assemblies="true" uuid_high="-6544252972830602690" uuid_low="-8149852761577840996" />
44
<method v="2" />
55
</configuration>
66
</component>

server/GameInv-WPF/GameInv-WPF.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Nullable>enable</Nullable>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<UseWPF>true</UseWPF>
10-
<ApplicationIcon>Resources\favicon.ico</ApplicationIcon>
10+
<ApplicationIcon>..\GameInv\Resources\favicon.ico</ApplicationIcon>
1111
<SelfContained>true</SelfContained>
1212
<EnableWindowsTargeting>true</EnableWindowsTargeting>
1313
</PropertyGroup>
@@ -28,11 +28,6 @@
2828
<None Remove="NLog.config"/>
2929
</ItemGroup>
3030

31-
<ItemGroup>
32-
<Resource Include="Resources\favicon.ico">
33-
</Resource>
34-
</ItemGroup>
35-
3631
<ItemGroup>
3732
<Page Update="WPF\Dialogs\ItemEditDialog.xaml">
3833
<Generator>MSBuild:Compile</Generator>
@@ -69,4 +64,8 @@
6964
<ItemGroup>
7065
<ProjectReference Include="..\GameInv\GameInv.csproj"/>
7166
</ItemGroup>
67+
68+
<ItemGroup>
69+
<Resource Include="..\GameInv\Resources\**\*" Link="Resources\%(RecursiveDir)%(Filename)%(Extension)"/>
70+
</ItemGroup>
7271
</Project>

server/GameInv-WPF/Properties/PublishProfiles/FolderProfile-Windows.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<SelfContained>true</SelfContained>
1313
<PublishSingleFile>true</PublishSingleFile>
1414
<PublishReadyToRun>true</PublishReadyToRun>
15-
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
15+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1616
</PropertyGroup>
1717
</Project>

server/GameInv-WPF/Windows/MainWindow/MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<Window x:Class="GameInv_WPF.Windows.MainWindow.MainWindow"
1+
<!-- ReSharper disable once Xaml.PathError -->
2+
<Window x:Class="GameInv_WPF.Windows.MainWindow.MainWindow"
23
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
34
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
45
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

server/GameInv/GameInv.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<SelfContained>true</SelfContained>
9+
<ApplicationIcon>Resources\favicon.ico</ApplicationIcon>
910
</PropertyGroup>
1011

1112
<ItemGroup>
@@ -27,5 +28,4 @@
2728
<ItemGroup>
2829
<None Remove="NLog.config"/>
2930
</ItemGroup>
30-
3131
</Project>

server/GameInv/Properties/PublishProfiles/FolderProfile-Linux.pubxml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1414
<SelfContained>true</SelfContained>
1515
<PublishSingleFile>true</PublishSingleFile>
1616
<PublishTrimmed>true</PublishTrimmed>
17+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1718
</PropertyGroup>
1819
</Project>

server/GameInv/Properties/PublishProfiles/FolderProfile-Windows.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1313
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1414
<SelfContained>true</SelfContained>
1515
<PublishSingleFile>true</PublishSingleFile>
16-
<PublishReadyToRun>false</PublishReadyToRun>
1716
<PublishTrimmed>true</PublishTrimmed>
17+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1818
</PropertyGroup>
1919
</Project>

0 commit comments

Comments
 (0)