title: Web.config transform is running twice on publish
body: <p>I have a solution that includes three web projects (as well as a lot of class library projects). The web projects all use Web.config transforms to specify per-environment configuration.</p>
  
  <p>I have Web.config transforms for multiple build profiles, named Web.UAT.config, Web.Staging.config and Web.Release.config</p>
  
  <p>I am building and deploying the project from my CI server using MSBuild with the following arguments:</p>
  
  <pre><code>/t:Clean,Build /p:Configuration=UAT;DeployOnBuild=True;PublishProfile=UAT
  </code></pre>
  
  <p>For exactly one of the three projects, the web.config transforms appear to get applied twice, with elements marked <code>xdt:Transform="Insert"</code> appearing twice. Looking in the build output, it seems that all three projects run the following targets:</p>
  
  <pre><code>PreTransformWebConfig
  TransformWebConfigCore
  PostTransformWebConfig
  PreProfileTransformWebConfig
  </code></pre>
  
  <p>But the problematic project also runs these targets (immediately after those listed above):</p>
  
  <pre><code>ProfileTransformWebConfigCore
  PostProfileTransformWebConfig
  </code></pre>