Changing application icon based on build configuration

K

KK

I have a C# application with different projects in the solution. I
need to change the application icon based on build configuration. I
have different build configurations for branding the application.

I can change the icons and splash screens without any problems. The
only problem is the Application icon which is used to show in the
taskbar and in Windows Explorer. Is there any way to change this?

I would also like to change the output exe name. Is that possible?

Thanks.
 
K

KK

Got it figured out. I manually edited the NewsClient.csproj and coped
the <ApplicationIcon> section from the common <PropertyGroup> to my
specific <PropertyGroup> and it picks the right icon based on my build
configuration.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top