title: Add default build configuration to Visual Studio
body: <p>My team and I are using VS2012 for a number of projects, and have developed a workflow with our QA and UAT group that involves 5 environments: Local, Development Staging, Testing, Preproduction, and Production. We've found ourselves having to create Local/Dev/Test/Preprod/Prod build configuration for every project and solution, and remove the debug and release configurations.</p>
  
  <p>Is there any way to have VS create these environments by default on new projects instead of the debug/release configurations?</p>
  
  <p>EDIT:
  I've not been able to find any Global option for this, as it seems the build configurations are all in the individual project folders.</p>
  
  <p>What I've done is find some of my most common projects and modified the project templates thusly:</p>
  
  <ul>
  <li>Modify the .csproj file and replace PropertyGroups with the following:
  <pre><code>&lt;PropertyGroup Condition=&quot; &apos;$(Configuration)|$(Platform)&apos; == &apos;Local|AnyCPU&apos; &quot;&gt;
      &lt;DebugSymbols&gt;true&lt;/DebugSymbols&gt;
      &lt;DebugType&gt;full&lt;/DebugType&gt;
      &lt;Optimize&gt;false&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;DEBUG;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
  &lt;/PropertyGroup&gt;
  &lt;-- SNIP -->
  &lt;PropertyGroup Condition=&quot; &apos;$(Configuration)|$(Platform)&apos; == &apos;Prod|AnyCPU&apos; &quot;&gt;
      &lt;DebugType&gt;pdbonly&lt;/DebugType&gt;
      &lt;Optimize&gt;true&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
  &lt;/PropertyGroup&gt;</code></pre></li>
  <li>Add my appropriate Web.Config transform directives:
  <pre><code>&lt;Content Include=&quot;Web.config&quot; /&gt;
  &lt;Content Include=&quot;Web.Local.config&quot;&gt;
      &lt;DependentUpon&gt;Web.config&lt;/DependentUpon&gt;
  &lt;/Content&gt;
  &lt;Content Include=&quot;Web.Dev.config&quot;&gt;
      &lt;DependentUpon&gt;Web.config&lt;/DependentUpon&gt;
  &lt;/Content&gt;
  &lt;Content Include=&quot;Web.Test.config&quot;&gt;
      &lt;DependentUpon&gt;Web.config&lt;/DependentUpon&gt;
  &lt;/Content&gt;
  &lt;Content Include=&quot;Web.Preprod.config&quot;&gt;
      &lt;DependentUpon&gt;Web.config&lt;/DependentUpon&gt;
  &lt;/Content&gt;
  &lt;Content Include=&quot;Web.Prod.config&quot;&gt;
      &lt;DependentUpon&gt;Web.config&lt;/DependentUpon&gt;
  &lt;/Content&gt;</code></pre></li>
  <li>Modified my .vstemplate file and replaced the Web.Debug and Web.Release config entries as such:
  <pre>&lt;ProjectItem ReplaceParameters=&quot;true&quot; TargetFileName=&quot;Web.config&quot;&gt;WebApiWeb.config&lt;/ProjectItem&gt;
  &lt;ProjectItem ReplaceParameters=&quot;true&quot; TargetFileName=&quot;Web.Local.config&quot;&gt;Web.Local.config&lt;/ProjectItem&gt;
  &lt;ProjectItem ReplaceParameters=&quot;true&quot; TargetFileName=&quot;Web.Dev.config&quot;&gt;Web.Dev.config&lt;/ProjectItem&gt;
  &lt;ProjectItem ReplaceParameters=&quot;true&quot; TargetFileName=&quot;Web.Test.config&quot;&gt;Web.Test.config&lt;/ProjectItem&gt;
  &lt;ProjectItem ReplaceParameters=&quot;true&quot; TargetFileName=&quot;Web.Preprod.config&quot;&gt;Web.Preprod.config&lt;/ProjectItem&gt;
  &lt;ProjectItem ReplaceParameters=&quot;true&quot; TargetFileName=&quot;Web.Prod.config&quot;&gt;Web.Prod.config&lt;/ProjectItem&gt;</pre></li>
  <li>I copied and renamed Web.Debug.config to Web.Local.config, Web.Dev.config, and Web.Test.config and Web.Release.config to Web.Preprod.config and Web.Prod.config.</li>
  </ul>
  
  <p>When I create the new projects, all of my desired environments are there, and debug is gone! However, Release is still there, including the web.Release.Config file, which I deleted. Any idea where this extraneous config file/build configuration may be coming from?</p>