title: Web.config-style transforms for App.config files for C# Console apps?
body: <p>My team is in love with publish profiles. We have a number of testing environments that we work in, and using Web.config transforms we're able to substitute the names of machines in each environment, configuration settings, etc, which makes our build/deploy/test process much easier.  </p>
  
  <p>For example:</p>
  
  <pre><code>Web.config
      Web.dev.config
      Web.int.config
      Web.prod.config
  </code></pre>
  
  <p>However, we have a number of test applications that we use to hit our web services, implemented as Console applications. We'd like to be able to do the same type of transforms on these config files, so that we can reduce manual labor of testing related to manual editing of config files when picking up a build drop.</p>
  
  <p>Essentially, we want this:</p>
  
  <pre><code>App.config
      App.dev.config
      App.int.config
      App.prod.config
  </code></pre>
  
  <p>My understanding of these config transforms is that they're related to the corresponding publish profiles in our web projects:</p>
  
  <pre><code>Properties
      PublishProfiles
          dev.pubxml
          int.pubxml
          prod.pubxml
  </code></pre>
  
  <p>I've attempted to add similar files to our Console app projects, but I suspect it's something in the web publishing MSBuild targets that actually utilizes them.</p>
  
  <p>Is there a way to hook into this part of the build specifically, so that we can transform non-web configs?</p>