I have the following dependency
Project A (owned by me) uses
- project_b.dll
- Newtonsoft.Json.dll (version 8)
Project B uses
- project_c.dll
- Newtonsoft.Json.dll (version 9)
Project C uses
- Newtonsoft.Json.dll (version 4.5)
Project A calls a method of Project B which will call a method of Project C, then return values back to B, then A
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-655535.0.0.0" newVersion="XX" />
</dependentAssembly>
I am trying to use assembly binding redirect on Project A. If I set 'newVersion' as 9.0, then the code complains (missing Newtonsoft.jSon.dll 4.5 library). Same thing if I set 'newVersion' as 4.5, then missing Newtonsoft.Json.dll 9.0 library error happens. I tried 'newVersion' value of 8.0 as well. It looks simple, and I thought redirecting should solve the issue. What will be the good solution? Should Project A, B, and C have the same version of Newtonsoft.Json.dll?
Thanks in advance..