RexHeadlong
Programmer
Has anybody had experience with making a project contain one of several possible icons for the desktop?
I have a project that I want to make have a different desktop icon for a different build configuration.
I already have my icon set to "myicon.ico" in the .csproj file. I already have a pre-build event that copies a different .ico file onto myicon.ico. This allows my project to have different desktop icons for different build configurations.
My problem is that all of the icons are named the same (myicon.ico) after the build. If the different builds are installed onto the same machine, then windows picks the first myicon.ico to display, FOR ALL INSTANCES.
I need to be able to create different builds of the same project, where the icon file is named something different for each build. The only solution I see right now is to have multiple .csproj files, one for each icon. But this will be a maintenance nightmare when adding or removing anything from the project.
Does anybody see a simpler solution?
Thanks for any help.
I have a project that I want to make have a different desktop icon for a different build configuration.
I already have my icon set to "myicon.ico" in the .csproj file. I already have a pre-build event that copies a different .ico file onto myicon.ico. This allows my project to have different desktop icons for different build configurations.
My problem is that all of the icons are named the same (myicon.ico) after the build. If the different builds are installed onto the same machine, then windows picks the first myicon.ico to display, FOR ALL INSTANCES.
I need to be able to create different builds of the same project, where the icon file is named something different for each build. The only solution I see right now is to have multiple .csproj files, one for each icon. But this will be a maintenance nightmare when adding or removing anything from the project.
Does anybody see a simpler solution?
Thanks for any help.