I'm getting a wall of warnings similar to the following in my build:
No way to resolve conflict between "Newtonsoft.Json, Version=7.0.0.0"
and "Newtonsoft.Json, Version=6.0.0.0".
Choosing "Newtonsoft.Json, Version=7.0.0.0" arbitrarily.
I get additional warnings for the following dlls (repeats are intentional):
Microsoft.Owin
System.Web.Http
Newtonsoft.Json
System.Net.Http.Formatting
Microsoft.Owin
Microsoft.ApplicationInsights
As well as a matching message for each warning:
Consider app.config remapping of assembly to solve conflict and get rid of warning.
Finally, I get this conflict:
Microsoft.Common.CurrentVersion.targets Found conflicts between
different versions of the same dependent assembly.
Please set the "AutoGenerateBindingRedirects" property to true
in the project file.
I've read every stack overflow and MSDN answer I could find for these messages. According to this answer, the best solution is to change the references that are causing the conflicted warnings to reference the same version. What seems to be the problem is that the chain of assemblies coming from some of the 53 projects in the solution depend on different assemblies with different versions. I am unable to tell which projects cause these warnings, and the binding redirects (auto-generated in every single project, I checked) have no effect on the warnings.
What can I do to resolve these build warnings?