View Full Version : Include environment specific configuration files

05-19-2011, 06:40 PM

I'm trying to create a setup file that can inculde configuration files that target different environments (dev, staging and production). I've created different solution configurations that target the different environments. I'm using the VS 2010 config transformations to modify the config file as required for the environment being targeted (the config files being modified are for a console application). When building the transformed config file is copied to the build output folder.

In my setup I include the primary output of the console app. However, this picks up the app.config file in the console app project and not the transformed app.config in the build output folder. Is there a way to include the transformed config file rather then the app.config in the project folder?