title: MSBuild Package task - Web Deploy
body: <p>I'm trying to add custom files to our web deployment package, per this blog posting:  <a href="http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx" rel="nofollow">http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx</a></p>
  
  <pre><code>  &lt;Target Name="CustomCollectFiles"&gt;
      &lt;Message Text="AppBuildFolder = $(AppBuildFolder)"/&gt;
      &lt;ItemGroup&gt;
        &lt;_CustomFiles Include="..\*Repository*\**\*.dll;..\*Repository*\**\*.pdb" Condition="'$(AppBuildFolder)' == ''" /&gt;
        &lt;_CustomFiles Include="$(AppBuildFolder + '*.dll');$(AppBuildFolder + '*.pdb')" Condition="'$(AppBuildFolder)' != ''" /&gt;
        &lt;FilesForPackagingFromProject Include="%(_CustomFiles.Identity)"&gt;
          &lt;DestinationRelativePath&gt;bin\%(Filename)%(Extension)&lt;/DestinationRelativePath&gt;
        &lt;/FilesForPackagingFromProject&gt;
      &lt;/ItemGroup&gt;
      &lt;Message Text="Files found: @(_CustomFiles)"/&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>We have some other references located at AppBuildFolder that we need copied into the package, but I never see any File found outputted in the message.  Any ideas?</p>
  
  <p>Thanks
  Andy</p>