I have Newtonsoft 10.0.3, Code fails wanting 6.0

I have code that uses Microsoft.TeamFoundation.WorkItemTracking.WebApi;. When I debug the code it fails at the following:

WorkItemTrackingHttpClient workItemTrackingHttpClient = new WorkItemTrackingHttpClient(uri, credentials)) 

The error shown is: Could not load file or assembly ‘Newtonsoft.Json, Version=

I am having a hard time figuring out what is going on. As a test, I tried installing Newtonsoft 6.0 through the console but it said that another library required => 9.0. I have also tried adjusting the <dependentAssembly> in the app config but unsuccessfully.

<dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="" newVersion="" /> <!--<bindingRedirect oldVersion="" newVersion="" />--> </dependentAssembly> 

Any ideas?

submitted by /u/WrkThrwAwyyy
[link] [comments]

Leave a Reply