Payload contains two or more files with the same destination path 'System.Diagnostics.Tools.dll'

Horcrux7 picture Horcrux7 · Jul 26, 2016 · Viewed 12.5k times · Source

After I add 2 libraries from Nuget to my project I receive follow error:

Error       Payload contains two or more files with the same destination path 'System.Diagnostics.Tools.dll'. Source files: 
C:\Users\Horcrux7\.nuget\packages\runtime.any.System.Diagnostics.Tools\4.0.1\lib\netcore50\System.Diagnostics.Tools.dll
C:\Users\Horcrux7\.nuget\packages\System.Diagnostics.Tools\4.0.0\lib\netcore50\System.Diagnostics.Tools.dll App1            

How can I solve this version conflict?

I have only a very small single UWP project.

Answer

Horcrux7 picture Horcrux7 · Aug 4, 2016

The problem has solve it self. An update to the latest version of Microsoft.NETCore.UniversalWindowsPlatform has solved it.

It look like that library A was compiled against version 5.1.0 and library B was compiled against version 5.2.2. Because my project was on version 5.1.0 there was a conflict situation. I does not understand why I have no conflict if I switch the UWP version.

If I use the library B with the old UWP version there was also no conflict.