I am using the solution to this question in order to apply configuration changes to App.config in a Winforms project. I also have an installer project for the proj
Another solution I've found is not to use the transformations but just have a separate config file, e.g. app.Release.config. Then add this line to your csproj file.
App.Release.config
This will force the deployment project to use the correct config file when packaging.