title: Publishing in release mode, publishes with debug configuration
body: <p>I'm having this weird issue I can't seem to figure out. I've developed this WPF application that has 2 configuration files setup one for Debug and another for Release. When I run the application in Debug mode it connects to the dev database as its supposed to and in Release it connects to the prod database and runs fine as its supposed to. However when I publish the application in Release mode and I go to launch the executable its running as if its in debug mode with the connection established to the dev database. </p>
  
  <p>I placed this code in the post build event command line:</p>
  
  <pre><code>if "Debug"=="$(ConfigurationName)" goto :nocopy
  del "$(TargetPath).config"
  copy "$(ProjectDir)\Release.config" "$(TargetPath).config"
  </code></pre>
  
  <p>And copy pasted my debug.config file to my release.config and just changed my connection string in my release config to connect to my prod database.</p>
  
  <p>How is this possible that it works fine when I'm debugging on both modes but when I publish in Release mode it uses the Debug config info? Any help would be greatly appreciated.</p>
  
  <p><strong>Update</strong></p>
  
  <p>When I publish what I do is right click on my project and select publish and walk through the wizard. I checked the publish tab under project properties and the configuration is grayed out and set to N/A. However, under the Debug tab configuration can be selected between debug and release.  </p>