Search code examples
c#jsonsilverlightwindows-phone-8payload

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


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?


Solution

  • 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