I want to have a different icon and executable file name for different builds of my WPF application. The reason is that I have two different version of the app which are slightly different (just a few items disabled, color changes etc) So I used two different build configurations and the App.config transforms to do that for example in my transform I have several transformations like this
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings xdt:Transform="Replace">
<add key="appTitle" value="Application Name 2"/>
<add key="appIcon" value="Icons\appplicationIcon2.ico"/>
</appSettings>
</configuration>
And then in my app I read the configuration setting for that property, appTitle or appIcon, and I perform some cosmetic or other changes to the app based on that.
But can I also use this to apply a change on the application icon itself (the one that gets embedded in the EXE, or the name of the EXE file?