title: Problems with Copy Target in TFSBuild.proj
body: <p>As part of my TFS (2008) build I want to manually copy the binaries and Views of an ASP.NET MVC project to a number of different locations. All existing binaries and views are copied successfully. Unfortunately, however, any newly added views are ignored during their first build. If I then start another build, they are included.</p>
  
  <p>Here is a snippet of the additions I have made to TFSBuild.proj...</p>
  
  <pre><code>&lt;ItemGroup&gt;
    &lt;BinaryFiles Include="$(BinariesRoot)\Debug\_PublishedWebsites\SiteName\bin\*.*" /&gt;
    &lt;ViewFiles Include="$(BinariesRoot)\Debug\_PublishedWebsites\SiteName\Views\**\*.aspx" /&gt;
    &lt;ViewFiles Include="$(BinariesRoot)\Debug\_PublishedWebsites\SiteName\Views\**\*.ascx" /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;Target Name="AfterDropBuild"&gt;
    &lt;Message Text="Starting deployment copy..." /&gt;
    &lt;Copy SourceFiles="@(BinaryFiles)" DestinationFolder="T:\BuildWebSiteHosting\WebSite\bin\" ContinueOnError="false" /&gt;
    &lt;Copy SourceFiles="@(ViewFiles)" DestinationFolder="T:\BuildWebSiteHosting\WebSite\Views\%(RecursiveDir)" ContinueOnError="false" /&gt;
    &lt;Message Text="Deployment copy completed." /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>I suspect that the list of files to copy is being built too early. Should I be using "AfterDropBuild" or is their a better target name?</p>