title: Build Fails With TFS 2010 Build but passes with VS 2010
body: <p>I have a Website Project in Visual Studio 2010 along with a Class Library Project.  When I try to build the Solution from Visual Studio 2010 it builds successfully but fails in TFS 2010 Build.  I have some custom .dll files added to website and it throws error in my class that following method is undefined.  The same thing builds 100% ok in VS 2010.  Earlier I had a different project structure but since then I even changed the project and file structure following this article on <a href="http://msdn.microsoft.com/en-us/library/bb668986.aspx" rel="nofollow">MSDN</a> for TFS 2010 Version control. </p>
  
  <p>The Build fails and it drops a log file in the drop folder.  </p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>Some of the errors in the log files are related like this.</p>
  
  <p><strong>error BC30451:</strong> 'AutoCompleteExtender' is not declared. It may be inaccessible due to its protection level.   </p>
  
  <p><strong>error BC30002:</strong> Type 'IFileNameGenerator' is not defined.</p>
  
  <p>These errors don't show up in VS2010.  </p>