title: Use custom Visual Studio run configuration with Docker
body: <p>I'm in the process of setting up a .NET Core project with Docker in Visual Studio 2017. I've created the project and added the docker-compose to the solution, and everything works.</p>
  
  <p>But somehow, the VS won't build and run Docker with any configurations, other than <em>Debug</em> and <em>Release</em>.</p>
  
  <p>I've created solution and project configurations named <em>Preproduction</em> and selected it, as well as created a <em>docker-compose.vs.preproduction.yml</em> file.</p>
  
  <p>But when I run the preproduction configuration, the project runs as if <em>Release</em> was selected instead. The Build Output console also shows the following:</p>
  
  <h3>Debug</h3>
  
  <pre><code>*docker-compose -f "docker-compose.yml" -f "docker-compose.override.yml" -f "docker-compose.vs.debug.yml" -p dockercompose3979710767*
  </code></pre>
  
  <h3>Release</h3>
  
  <pre><code>*docker-compose -f "docker-compose.yml" -f "docker-compose.override.yml" -f "docker-compose.vs.release.yml" -p dockercompose3979710767*
  </code></pre>
  
  <h3>Preproduction</h3>
  
  <pre><code>*docker-compose -f "docker-compose.yml" -f "docker-compose.override.yml" -f "docker-compose.vs.release.yml" -p dockercompose3979710767*
  </code></pre>
  
  <p>Notice the second yml file.
  Somehow it uses the release file, and not the custom configuration file I've added. </p>
  
  <p>Does anyone have any idea how to solve this, so docker will use my custom configurations?</p>