title: TFS Build not transforming web.config as expected
body: <p>The goal is to have TFS build and deploy 2+ different configurations, and have the web.config transform files include the intended content in their output. This in an ASP.NET MVC project.</p>
  
  <p><img src="https://i.stack.imgur.com/OKFKU.jpg" alt="alt text"></p>
  
  <p>Web.Debug.Config - <a href="http://pastebin.com/9ZwbbsBd" rel="noreferrer">see on PasteBin</a>.<BR>
  Web.Release.Config - <a href="http://pastebin.com/q2aQNrRY" rel="noreferrer">see on PasteBin</a></p>
  
  <p>The 2 transformed config files have their <strong>Build Action set to None</strong>. This was modified because all 3 web.*.config files were being included in the deployment.</p>
  
  <p>TFS is configured correctly to build and deploy both configurations. It deploys to the 2 drop locations as expected. There are no MSBuild Arguments specified in the build definition.</p>
  
  <p><img src="https://i.stack.imgur.com/oDbgQ.png" alt="alt text"></p>
  
  <p><strong>Problem</strong>: The 2 built and deployed web sites have the same web.config file. Basically it's as if the transformed files did not exist.</p>
  
  <p><strong>Expected</strong>: the changes specified (<code>xdt:Transform="Replace"</code> and <code>xdt:Transform="Remove"</code>) would be present in the web.config files.</p>
  
  <p>How can you configure your project or TFS to ensure the web.config transformations are processed and their outputs deployed to the correct deployment locations? What else can I check/modify?</p>
  
  <ul>
  <li>Have confirmed that the transformations are good -- <a href="http://vishaljoshi.blogspot.com/2009/03/web-deployment-webconfig-transformation_23.html" rel="noreferrer">Vishal's Joshit's tutorial with the MSBuild on the command line</a> output the correct transformations!</li>
  <li>No modifications have been made to the .csproj for any post-build or deployment.</li>
  <li>Are any <code>xdt</code> attributes being misused or missing?</li>
  <li>There are no MSBuild Arguments specified in the build definition.</li>
  <li>Are the web.config Build Actions set correctly?</li>
  <li>We're not using web deployment packages or anything. Simply expecting to xcopy these outputs over to their various webserver locations at a later date.</li>
  </ul>
  
  <p>If I'm missing any important information, please leave a comment, and I'll include any more relevant information!</p>