I know this sounds strange – What the relation between “’Microsoft.TeamFoundation.Client” and Running Tests from command line?
Visiting a customer I saw this error when the the customer tried to run Coded UI Tests using MsTest (Machine only with Test Agent):
Run has the following issue(s):
Failed to queue test run ‘XX@XXX-XXXTEAM-PC 2013-07-18 17:58:02′: Could not load
file or assembly ‘Microsoft.TeamFoundation.Client, Version=126.96.36.199, Culture=ne
utral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system c
annot find the file specified.
This is the line we’re running:
I’ve also created a dummy test dll that open calc to make sure there is not reference to TeamFoundation.Client.dll (for any reason) but the error repeats.
This is a Bug that was fixed in Update 3 for Visual Studio 2012, so just install Update 3 on the Test Agent and the problem will disappear.