I am trying to fix warning
The type 'X' in 'A' conflicts with the imported type 'X' in 'B'
I have solution with 2 projects: A.exe
and B.dll
, both are referencing same nuget Newtonsoft.Json
, therefore a warning.
This question (which seems to be exacly what I need) doesn't really have an answer, only a tip to use "Manage Nuget Packages for Solution", but there is no instructions what to do to have that what question is asking for.
In "Manage Nuget Packages for Solution" I can see what X
is installed for both A
and B
, has same version, I can uninstall it, etc. But, how do I organize nuget to avoid having conflict warning (because as soon as I reference same nuget in 2 projects I will have it) - there is no info regarding this.
Question: how to use same nuget package for multiple projects in solution properly?