I want to update the Newtonsoft.Json dll from version 6.0.0.0 to version 8.0.0.0. I also refer to System.Net.Http.Formatting.dll version 5.2.3.0. It is internally referring to Newtonsoft.Json dll version 6.0.0.0.
Hence i'm getting below error: System.IO.FileNotFoundException : Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Tried assembly binding and added below in app.config
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
</assemblyBinding>
Still facing same issue.
oldVersion="0.0.0.0-8.0.0.0"
. After that change your build output verbosity inTools > Options > Projects and Solutions > Build and Run
to Detailed or Diagnostic to verify, why build is picking incorrect version. – Peska