title: TFS Build/MSBuild 2010 bin folder auto redirection to binaries folder not redirecting all projects
body: <p>I have TFS2010 build workflow that compiles our solution which contains ~100 projects.  Compilation is successful, tests run as expected etc.  The issue I have relates to the redirection of the bin output folders.  </p>
  
  <p>As I understand it, the TFS2010 build activity for MSBuild redriects your bin folder output to a binaries folder at the the same level as the Sources and TestResults folders as shown below.  </p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\Binaries</p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\Sources</p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\TestResults</p>
  
  <p>This redirection of the bin folder works as expected for 80% of my projects.  The remaining projects bin folders appear unredirected in their standard location as if I was compiling using VS on a local machine.</p>
  
  <p>To illustrate, when working as expected...</p>
  
  <p>Source path:-</p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\Sources\Source\MyPlatform.Modules.Interaction.Specs</p>
  
  <p>Bin output succesfully redirected to the binaries folder :-</p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\Binaries\Mixed Platforms\Debug\MyPlatform.Modules.Interaction.Specs</p>
  
  <p>and now a non redirected example...</p>
  
  <p>Source path :-</p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\Sources\Source\MyPlatform.AddIns.Framework.Services</p>
  
  <p>Bin output not redirected and remains in the source folder:-</p>
  
  <p>C:\Builds\1\MyPlatform\MyPlatform Main - CI\Sources\Source\MyPlatform.AddIns.Framework.Services\bin\Debug</p>
  
  <p>To clarify, this is not an issue with the drop location but the redirection of bin output to the intermediate Binaries folder.  The copy to my final drop location works as expected, all be it minus the projects whos bin output wasn't initially redirected to the binaries folder.  </p>
  
  <p>I've had a good look around and all information I've seen points towards customising the output to the binaries folder or relates to the drop location.  Having read this, I can't see anything that should cause some projects to ignore the default redirection.</p>
  
  <p>Most of my projects are standard .NET 4 class libraries although there are a couple of c++ projects and a WIX installer.  I initially though it would be related to this difference but this problem is occuring on several .NET 4 class libraries that have identical settings to all the other projects that redirect successfully.</p>
  
  <p>One more point about the example paths above. I've substituted "My" for actual project prefixes but otherwise paths are as used.</p>
  
  <p>Does anyone know why some projects bin output might not be redirected?</p>
  
  <p>Any help you can offer would be appreciated.</p>
  
  <p>Thanks
  H</p>