title: Execute task after web publish to file system
body: <p>I've added the following lines to the publish profile (.pubxml-file): </p>
  
  <pre><code> &lt;/PropertyGroup&gt;
     &lt;Target Name="AfterWebPublish" AfterTargets="WebPublish"&gt;
       &lt;Message Text="After WebPublish" Importance="high"/&gt;
       &lt;Move SourceFiles="$(publishUrl)\AppSettings.config"  DestinationFiles="$(publishUrl)\AppSettings.new.config"&gt;&lt;/Move&gt;
       &lt;Move SourceFiles="$(publishUrl)\ConnectionStrings.config" DestinationFiles="$(publishUrl)\ConnectionStrings.new.config"&gt;&lt;/Move&gt;
     &lt;/Target&gt;  
   &lt;/Project&gt;
  </code></pre>
  
  <p>After publishing directly from Visual Studio 2015 (Build/Publish...) all files are published BUT NOT RENAMED (moved). </p>
  
  <p>When I use the publish profile in a command line </p>
  
  <p>msbuild /t:WebPublish /p:PublishProfile=%PUBLISH_PROFILE% %PROJECT_FILE%</p>
  
  <p>it works like expected (files published and renamed).</p>
  
  <p>What can I do to execute a task after WebPublish in Visual Studio 2015.</p>