RexHeadlong
Programmer
This question might be more of a VS .NET question than straight C#, but here goes.
I'm trying to set up a method by which my application can be compiled using one of two different application icons. So, when I build it one way, I get my .exe with one icon associated with it. But, if I build it another way, I get the same .exe with a different icon associated with it.
Unfortunately, the Application Icon isn't a property that can be set differently for different build configurations.
I tried duplicating the .csproj file for my project. This way, I have two 'projects' in the same folder. The only differences are the GUIDs and the Application Icon. This method works, but the drawback is that any changes made to one .csproj file must be manually duplicated in the other .csproj file. In a multi-developer environment it will be tough to enforce this rule.
Does anybody know a programmatic way to determine which application icon to use?
Thanks for any help.
I'm trying to set up a method by which my application can be compiled using one of two different application icons. So, when I build it one way, I get my .exe with one icon associated with it. But, if I build it another way, I get the same .exe with a different icon associated with it.
Unfortunately, the Application Icon isn't a property that can be set differently for different build configurations.
I tried duplicating the .csproj file for my project. This way, I have two 'projects' in the same folder. The only differences are the GUIDs and the Application Icon. This method works, but the drawback is that any changes made to one .csproj file must be manually duplicated in the other .csproj file. In a multi-developer environment it will be tough to enforce this rule.
Does anybody know a programmatic way to determine which application icon to use?
Thanks for any help.