I am making a single exe application, that is linked in multiple Right-Click menus.
It is VB.Net application, using Net Framework 4.0 , Visual Studio 2019.
Each of those items needs a different icon.
How do I expose icons inside my exe, so they are available in Right-Click menu items and shortcuts without using post-build hackery?
I mention post-build as hackery, cos some anti-virus might not like the change in the signature that comes with messing about with the exe as a post-build step.
What I tried:
Adding png and ico versions of icons to My.Resources Adding png and ico versions of icons using Project -> Add -> Existing Item -> selecting files Using ImageMagick to combine multiple icons in to one ico file
Open the project script in the editor by right-clicking on the project and selecting Unload Project, then right clicking on the project and selecting Edit . Add the following element to the project script, replacing ExeName with the name of the project.
<PropertyGroup>
<Win32Resource>ExeName.res</Win32Resource>
</PropertyGroup>
What I want (example using explorer.exe): enter image description here
What do I have: No idea