Last active
September 30, 2024 06:36
-
-
Save SchreinerK/d51ad3f7ccc94557837a45d9eacf8909 to your computer and use it in GitHub Desktop.
Multiple Icons in exe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 ICON "Resources/app.ico" | |
102 ICON "Resources/second.ico" | |
201 24 "app.manifest" <- optional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<Win32Resource>Resources\Icons.res</Win32Resource> | |
</PropertyGroup> | |
<ItemGroup> | |
<None Include="Resources\icons.rc" /> | |
<None Include="Resources\icons.res" DependentUpon="icons.rc"/> | |
</ItemGroup> | |
<Target Name="CompileResource" BeforeTargets="BeforeBuild"> | |
<!-- Compiles the .rc file into a .res file --> | |
<Exec Command=""C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe" /nologo /fo Resources\Icons.res Resources\icons.rc" /> | |
<Message Text="Compiling resources..." Importance="high" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment