title: VS2013 Publish using WebDeploy isn't transforming additional files
body: <p>I've build simple WebAPI project and not i'm trying to publish it using Visual Studio 2013 build in Publish mechanism (BUILD>Publish)<br/>
  I've pick Web Deploy as publish method, got everything working, except transform files.</p>
  
  <p>I have Web.config and Settings.config and two transforms for each.
  When I do standard build on my project inside bin folder I see single Web.config and Settings.config with transform applied, but when I do publish instead of transformed Settings.config file I see one without transforms applied.</p>
  
  <p>I't looks like publish mechanism inside Visual Studio is only transforming Web.config and it skips additional files.</p>
  
  <p>Below is part of my csproj that is responsible for applying transforms:</p>
  
  <pre><code>&lt;Target Name="AfterBuild"&gt;
    &lt;TransformXml Condition="Exists('Settings.$(Configuration).config')" Source="Settings.config" Destination="$(OutputPath)Settings.config" Transform="Settings.$(Configuration).config" /&gt;
    &lt;TransformXml Condition="Exists('Web.$(Configuration).config')" Source="Web.config" Destination="$(OutputPath)Web.config" Transform="Web.$(Configuration).config" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>My question is how should I setup my publish profile so instead of copying clean Settings.config it will apply correct transform and publish it.</p>
  
  <p>EDIT:
  I've managed to find one thing that might help solving this. If I add <code>UseMsdeployExe</code> to pubxml I can see in Output that my Settings.config is transformed and saved to <code>bin</code> folder, but then later is it overridden by original file.</p>
  
  <p>my AfterBuild target is called correctly, but after it I can see in output those lines:</p>
  
  <p>2>    Copying all files to temporary location below for package/publish:
  2>obj\Debug\Package\PackageTmp.
  2>    Copying bin\Api.dll to obj\Debug\Package\PackageTmp\bin\Api.dll.
  2>    Copying Settings.config to obj\Debug\Package\PackageTmp\Settings.config.</p>