Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple icons in executable in VS2010

Tags:

c#

.net

icons

exe

I have Googled and found multiple ways of adding multiple icons into the executable, but they all seem to work for VS 2003-2005-2008, nothing for VS2010. I have not tried the Win32 resource with /win32res because I do not know how to use it (can't figure to get a good Google result for that either).

Any simple suggestion?

like image 790
Lazlo Avatar asked Aug 16 '10 05:08

Lazlo


1 Answers

I've just created a simple tool to do exactly this without having to mess with .res files. It's a tiny utility which you can use as part of your Post-Build event and lets you add all icons files in a particular folder to your assembly. If we assume that you have a icons folder under your main project folder you can add the following post-build event:

C:\path\to\InsertIcons.exe $(TargetPath) $(ProjectDir)icons

A further description and a download can be found at http://einaregilsson.com/add-multiple-icons-to-a-dotnet-application/

like image 117
Einar Egilsson Avatar answered Oct 19 '22 04:10

Einar Egilsson