Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load type 'Microsoft.TeamFoundation.TFStringComparer' from assembly 'Microsoft.TeamFoundation.Common'

using Microsoft.TeamFoundation.TestManagement.Client;

I've encountered - TypeLoadException was unhandled

Error Description Says:

Could not load type 'Microsoft.TeamFoundation.TFStringComparer' from assembly 'Microsoft.TeamFoundation.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Any help would be appreciated

like image 760
Shalem Avatar asked Jun 23 '17 06:06

Shalem


2 Answers

I've tried Microsoft Team Foundation Server Extended Client instead of Microsoft Team Foundation Server Client. This resolved my error. Thanks @Patrick-MSFT, you provided me thoughts to resolve the issue

like image 198
Shalem Avatar answered Nov 05 '22 05:11

Shalem


Base on error info, the solution is installing and refer the necessary assemblies Microsoft.TeamFoundation.Common, Version=15.0.0.0.

You can install nugget Package Microsoft.TeamFoundation.Client. After installed this Package, you can use this reference in the code.

Another workaround is copying the necessary assemblies from another machine. If the issue still persist, please re-install the VS 2017. More details please take a look at this similar question.

like image 25
PatrickLu-MSFT Avatar answered Nov 05 '22 05:11

PatrickLu-MSFT