有效负载包含两个或多个文件,这些文件具有相同的目标路径"System.Diagnostics.Tools.dll" [英] Payload contains two or more files with the same destination path 'System.Diagnostics.Tools.dll'

查看:475
本文介绍了有效负载包含两个或多个文件,这些文件具有相同的目标路径"System.Diagnostics.Tools.dll"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将2个来自Nuget的库添加到我的项目后,出现以下错误:

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            

如何解决此版本冲突?

我只有一个非常小的UWP项目.

I have only a very small single UWP project.

推荐答案

问题已自行解决. Microsoft.NETCore.UniversalWindowsPlatform的最新版本的更新已解决.

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

看起来库A是针对版本5.1.0编译的,而库B是针对版本5.2.2编译的.因为我的项目是在5.1.0版上,所以出现了冲突情况.我不明白,如果切换UWP版本,为什么没有冲突.

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.

如果我将库B与旧的UWP版本一起使用,也没有冲突.

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

这篇关于有效负载包含两个或多个文件,这些文件具有相同的目标路径"System.Diagnostics.Tools.dll"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆