title: Compilation Error when building on TFS agent but not on my local machine
body: <p>I am new to working with TFS Builds and for the life of me cannot figure out why I am getting a compilation error on TFS when it builds fine locally. </p>
  
  <p><a href="https://i.stack.imgur.com/SKQ11.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SKQ11.png" alt="this is the error message from TFS Build"></a></p>
  
  <p>Line 98 is:
  <a href="https://i.stack.imgur.com/PtJwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PtJwO.png" alt="enter image description here"></a></p>
  
  <p>Both my workstation and the workstation where the builds are run have the same .NET frameworks. Any help would be appreciated.</p>