title: TFS build-server build of branch?
body: <p>We have a TFS 2008 project with two branches ("Main" and "NewFeature").
  Each is a complete, independent "copy" (variant) of the source code.</p>
  
  <p>By changing the workspace mappings, we can map either variant onto our local PCs and have been working with both branches with no problems.</p>
  
  <p>However, if I set up the mappings to switch our build server on to the NewFeature branch (which should simply swap in the NewFeature source code without changing anything else as far as the build server is concerned) I get errors:</p>
  
  <pre><code>There is no working folder mapping for $/Main/Product.sln
  </code></pre>
  
  <p>i.e. when it is building from the NewFeature branch, something is still looking in the <strong>Main</strong> branch, even though there are no references anywhere in the source code to this branch. It appears to be caching some reference to Main?!</p>
  
  <p>I have done a completely clean build (deleted the build folder from the server and run the build with /p:ForceGet=true to make sure the mapping is flushed through to the server, and there are no files on the server that might cache the workspace bindings), but this doesn't help.</p>
  
  <p>Any suggestions?</p>