Upgrading WP8 to Silverlight WP8.1, payload contains two or more files with same destination

a 夏天 提交于 2019-12-11 02:43:47

问题


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,

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

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.

Any ideas?


回答1:


I had the same issue and I fixed it using these steps :

  • Use "manage nuget for solution" and be sure that all projects are using the same version of NewtonSoft using the "consolidate" tab.
  • Clean all projects.
  • Rebuild

Regards



来源:https://stackoverflow.com/questions/31090004/upgrading-wp8-to-silverlight-wp8-1-payload-contains-two-or-more-files-with-same

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!