title: Error CS0234 when building solution using TFS 2017 BuildAgent
body: <p>I ran into the following probem, when trying to build using a TFS build definition.</p>
  <p>When executing a Build the agent logs following errors:</p>
  <blockquote>
  <p>Error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)</p>
  <p>Error CS0246: The type or namespace name 'TestInitializeAttribute' could not be found (are you missing a using directive or an assembly reference?)</p>
  <p>Error CS0246: The type or namespace name 'TestCleanupAttribute' could not be found (are you missing a using directive or an assembly reference?)</p>
  <p>Error CS0246: The type or namespace name 'TestCleanup' could not be found (are you missing a using directive or an assembly reference?)</p>
  <p>Error CS0246: The type or namespace name 'TestMethodAttribute' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  <p>So i understand the message that way, that the buildAgent is unable to find the following .dll</p>
  <blockquote>
  <p>Microsoft.VisualStudio.TestTools.UnitTesting;</p>
  </blockquote>
  <p>I have installed Visual Studio 2017 RC and Visual Studio 2017 Build Tools on the server, that runs TFS and the Buildagents.</p>
  <p>I have also installed .net 4.6.1 on that mashine.</p>
  <p>This
  <a href="https://stackoverflow.com/questions/8921064/unit-test-project-not-building-from-build-server#_=_">accepted answer</a> is not a solution for me.</p>
  <p>There must be some kind of solution, that does not include to copy that dll into the git trunk and reference it from there.</p>
  <p><strong>Update</strong></p>
  <p>I am able to locally build the Solution using Visual Studio 2017 RC on that mashine.
  But the build agent still throws the same errors.</p>