title: TeamCity won't build with NUnit class library
body: <p>I have a .NET solution set up that has the main ASP MVC project and then a class library project that has had NUnit added to it for unit tests.</p>
  
  <p>When I build the solution in TeamCity the main project builds fine but then when the test project builds I get these errors</p>
  
  <pre><code>error BC30002: Type 'TestFixture' is not defined. 
  error BC30002: Type 'Test' is not defined. 
  error BC30389: 'System.Diagnostics.Assert' is not accessible in this context because it is 'Friend'. 
  </code></pre>
  
  <p>I assume it can't find the <strong>NUnit.dll</strong> or something but the dll is in the solution packages folder.  I've tried doing package restore first in case it was that but it still did the same.</p>
  
  <p><strong>Update</strong>
  Ok, just to test it I added Moq to the project to see if it would pick up the references. It did and worked fine, it seems to be only problem when I try to use NUnit functions.  I could disable it from building but surely the NUnit tests won't be picked up in Team City?</p>
  
  <p>Thanks!</p>