将WP8升级到Silverlight WP8.1,有效负载包含两个或多个目标相同的文件 [英] Upgrading WP8 to Silverlight WP8.1, payload contains two or more files with same destination
问题描述
我已经将项目更新为Silverlight WP8.1,并更新了不同的nuget软件包.重建,重新启动,清理和重建:)但是我一直收到错误消息,
I have updated my project to Silverlight WP8.1, and updated the different nuget packages. Rebuild, restart, clean and rebuild :) But I keep getting an error,
错误有效负载包含两个或多个文件,这些文件具有相同的目标路径"Newtonsoft.Json.xml".源文件: C:\ Users \ johann \ Desktop \ StoneGaard \ packages \ Newtonsoft.Json.7.0.1 \ lib \ portable-net40 + sl5 + wp80 + win8 + wpa81 \ Newtonsoft.Json.xml C:\ Users \ johann \ Desktop \ StoneGaard \ packages \ Newtonsoft.Json.6.0.8 \ lib \ portable-net40 + sl5 + wp80 + win8 + wpa81 \ Newtonsoft.Json.xml
Error Payload contains two or more files with the same destination path 'Newtonsoft.Json.xml'. Source files: C:\Users\johann\Desktop\StoneGaard\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.xml C:\Users\johann\Desktop\StoneGaard\packages\Newtonsoft.Json.6.0.8\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.xml
我找到了 WinRT应用程序的解决方案,但在Silverlight中不起作用
尝试使用Package Manager Console
卸载特定版本并安装Newtonsoft.json,但错误始终出现.
I found a solution for a WinRT application, but did not work in silverlight
tried Uninstall the specific versions using Package Manager Console
and install Newtonsoft.json, but the error keeps appearing.
有什么想法吗?
推荐答案
我遇到了同样的问题,并使用以下步骤对其进行了修复:
I had the same issue and I fixed it using these steps :
- 使用管理解决方案的管理工具",并通过合并"标签确保所有项目都使用相同版本的NewtonSoft.
- 清理所有项目.
- 重建
致谢
这篇关于将WP8升级到Silverlight WP8.1,有效负载包含两个或多个目标相同的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!