We converted class library from .net framework to .net standard 2.0
Project A conosle app in .net framework 4.6.2 starts complaining. which uses the above library.
SeverityCode
DescriptionProjectFileLineSuppression State
ErrorCS0433
The type 'XmlElementAttribute' exists in both 'System.Xml.XmlSerializer, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SeverityCode
DescriptionProjectFileLineSuppression State
ErrorCS0433
The type 'ConcurrentDictionary<TKey, TValue>' exists in both 'System.Collections.Concurrent, Version=4.0.13.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SeverityCode
DescriptionProjectFileLineSuppression State
ErrorCS0433
The type 'ConfigurationManager' exists in both 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I tried adding nuget of Microsoft.Windows.Compatibility to console app but it doesn't help.
console app had reference to both System.Configuration.dll and system.configuration.configurationManager nuget.