views:

39

answers:

2

I basically have the same issue as this question: Embed multiple icons in WPF EXE

My .NET 2.0 WinForms application currently has this when you click "Change Icon" in explorer:

EVEMon Single Icon

What I would like to see, and with some hacking about as suggested by the above article I get this:

EVEMon Multiple Icons

However the process of getting there all of the version information for the assembly is lost. I need to maintain the Version Information in the assembly as my auto-update process relies on this to identify the installed version of the application.

I also build the application through a continuous integration process so I would prefer not to have any steps that require manual intervention, so is this possible in an automated way?

+2  A: 

This Code Project article has a walkthrough on how to do this.

Basically you add more icon resources to the project.

ChrisF
Looks promising, I shall have a go tomorrow see if this does everything I need.
Richard Slater
That article does not solve his versioning problems, it seems to stop the manifest from being embedded.
insipid
+1  A: 

The article mentioned by ChrisF will also wipe out your assembly version information. Once you follow that guide you might want to try using the post-build method described here http://blogs.msdn.com/b/cheller/archive/2006/08/24/718757.aspx to embed the manifest.

EDIT:

It is "Method #2 - The "Generic" Approach (using mt.exe)"

insipid
Thanks for looking into that further for me, I shall have a look at the CodeProject guide and the blog see if I can build up an automated process.
Richard Slater