title: Bin folder not being copied with MSBuild, Teamcity
body: <p>I have a very odd issue, where I've created a custom MSBuild task that would move all files I need for my MVC project to a specific location so that we can publish it. This works fine when I trigger the script localy on my machine but as soon as I check this changes in and Teamcity runs the script, it copies everything except from the Bin folder. 
  However, if run MSbuild directlly from the command line (same script), it does copy the bin folder. I don't understand why this isn't working when TeamCity is building it. </p>
  
  <p>Does anyone have an idea why this is happening and how to solve it?</p>
  
  <pre><code>&lt;Target Name="AfterBuild"&gt;
     &lt;CallTarget Targets="Move" /&gt;
  &lt;/Target&gt;
  &lt;Target Name="Move"&gt;
      &lt;Copy SourceFiles="@(BinFolder)" DestinationFolder="$(ArtifactsDir)\Webproject.Web\bin" /&gt;
      &lt;Copy SourceFiles="@(ContentFolder)" DestinationFolder="$(ArtifactsDir)\SchrodersFundEngine.Web\Content" /&gt;
      &lt;Copy SourceFiles="@(ImagesFolder)" DestinationFolder="$(ArtifactsDir)\SchrodersFundEngine.Web\Images" /&gt;
      &lt;Copy SourceFiles="@(ScriptsFolder)" DestinationFolder="$(ArtifactsDir)\SchrodersFundEngine.Web\Scripts" /&gt;
  &lt;/Target&gt;
  
  
  &lt;ItemGroup&gt;
     &lt;BinFolder Exclude="*.cs" Include="$(ProjectDir)bin\**\*.*"/&gt;
     &lt;ContentFolder Exclude="*.cs;*.svn-base" Include="$(ProjectDir)Content\*.css"/&gt;
     &lt;ImagesFolder Exclude="*.cs;*.svn-base" Include="$(ProjectDir)Images\*.*"/&gt;
     &lt;ScriptsFolder Exclude="*.cs;*.svn-base" Include="$(ProjectDir)Scripts\*.js"/&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>$(ArtifactsDir) is a paramanter I'm passing in from Teamcity &amp; manually in the command line. </p>
  
  <pre><code>/p:ArtifactsDir="%system.agent.work.dir%\WebProject\trunk\Website"
  </code></pre>