I’ve a solution with somewhere in the region of 60 projects, most of which use Newtonsoft.Json.dll and many of which reference each other. Things were building nicely, no warnings.
Took a look at the Consolidate feature of the nugget package manager, and it seemed to be quite useful- multiple projects using different versions of Newtonsoft could be quickly regularised to all use the same version. Most projects use the same version, some were ahead by a few minors, some lagged by at most one major version. Click click done, all projects now have the same version installed and referenced. Apparently.
Warnings appear about finding different conflicting versions of the same assembly, so I decided to file-find every Newtonsoft.Json.dll under the project tree and erase them, and also erase the solutiondir\packages\Newtonsoft.Json folder, then do a package restore and a rebuild the solution..
Bizarrely, it doesn’t seem to have helped.. I genuinely thought that clearing the old versions and having had NPM make every project in the solution on the same version, would mean there weren’t 9 different versions of it kicking around, but sure enough doing a search for the dll turns up different sized files all over the solution tree
What’s the right way to handle this and kill off the warnings about conflicting assemblies post consolidate?