Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For me the simplest solution to that problem is to create a .res file, which includes only icons you need (and stores them in your preferred order), disable a main icon in project properties and merge previously prepared icon pack (.res file) to your final .exe file, doing it in post-build event. Although, if this process can be fully automated and keep your manifest data unchanged, it needs in last step a external tool (<strong>ResHacker</strong>), which allow you to do a .res file merging job via command line (of course, Visual Studio can do this, but as far I know there are no command line interface to achieve it - if I'm wrong, please correct me).</p> <ol> <li><p>Download a blank .res file (<a href="http://www.codeproject.com/Tips/160885/How-to-Embed-Multiple-Icons-and-Color-Animated-Cur.aspx" rel="nofollow">http://www.codeproject.com/Tips/160885/How-to-Embed-Multiple-Icons-and-Color-Animated-Cur.aspx</a>) and add it to your project</p></li> <li><p>Fill out previously added .res file with your icons</p></li> <li><p>Remove main icon from your project (Project -> Properties)</p></li> <li><p>Download a <em>ResHacker</em> tool (<a href="http://www.angusj.com/resourcehacker/" rel="nofollow">http://www.angusj.com/resourcehacker/</a>) and place it wherever you want</p></li> <li><p>Add similar line to your post-build event:</p> <pre><code>if $(ConfigurationName) == Release ( ..\..\..\..\..\Tools\ResHack\ResHacker.exe -add $(TargetPath), $(TargetPath), $(ProjectDir)Properties\AssemblyWin32.res ,,, ) </code></pre></li> </ol> <p>That's all. Everytime you compile your project in Release mode you will get a wanted icons to your destination .exe file.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload