I have a wpf clickonce application that uses multiple app.configs based on configuration. When I build it outputs the correct app.config, but when I publish it uses the wrong app.config.
Here is my setup:
- App.config - dummy empty config file.
- App.Debug.config - debugging config
- App.Test.config - test config
- App.UAT.config - UAT
- App.Prod.config - production
I have an "AfterCompile" task in my project settings that applies the correct config file based on the environment configuration and this works great. But when I use VS2012 publish wizard it uses the dummy config file regardless of the configuration setting.