title: Linked file in WCF RIA service does not build in TFS Build server
body: <p>I've just setup a TFS (2012) server and now I'm trying to build the complete code (written in .NET 4.0 in VS 2010) via the TFS Build server. But in my solutions I have also a WCF RIA project which contains linked files because they are used somewhere else also and there is no possibility to add a reference to a general .NET binary in WCF/Silverlight.</p>
  
  <p>Everything builds without any problem on my development machine but when I check it all in, create a standard build definition and run that build definition I get the following problem. The linked files have <code>usings</code> (UsingNamespace for example) to other projects that are also build by us and build before the WCF/Silverlight but the following error pops up while building through TFS Build server: </p>
  
  <blockquote>
    <p>The type or namespace 'UsingNamespace' could not be found (are you
    missing a using directive or an assembly reference?)'</p>
  </blockquote>
  
  <p>Is there any solution for this problem that I looked over?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>Just tried to set the <code>Copy to Output Directory</code> propertie of the linked files to <code>Copy Always</code> but this still gives me the same error as I was expecting. The problem is that the linked file is placed somewhere that it can use the <code>usings</code> but the WCF RIA service cannot access/find that using.</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Just tried out my local test TFS where I can do what I want and there I made a build definition with just the solutions needed to make that the project with the linked files builds. This worked without any problem. Then I tried the same on our TFS server with a new build definition that has the same solutions as on my test TFS and here it did not work. The only difference that I know for sure is that my test TFS is TFS 2012 Update 1 and that my production TFS does not have the update 1 yet. I'll try to install it next week.</p>
  
  <p><strong>EDIT 3</strong></p>
  
  <p>I've just updated our production TFS to Update 1 but it is still not working with my temporary build definition which only contains the projects that are needed to build the silverlight application with the linked files. The 2 workspaces are the same on both server and the projects to build are also the same.</p>