Surface Pro 7 deal! Save big at Amazon right now

  1. ochhanz's Avatar

    Deploying app packages for my app (store->create app packages (for side-loading)) seems to be quite buggy for some unknown reason. I almost get the following error (and some other similar "Payload contains two or more files..." errors):

    "Payload contains two or more files with the same destination path 'System.Runtime.InteropServices.dll'. Source files:
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.any.system.runtime.interopservices\4.1.0\lib\netcore50\System.Runtime.InteropServices.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.aot.system.runtime.interopservices\4.0.20\runtimes\aot\lib\netcore50\System.Runtime.InteropServices.dll

    Now the strange thing is that if I clean and rebuild my solution several times each time, eventually it works and I can successfully deploy the app (works on both pc and phone). However this is really annoying so I would like to prevent this error entirely, is there a way?

    Update: I am not sure but perhaps I found a fix. When I clear the NuGetPackage cache before deploying it does not seem to give any errors.
    Last edited by ochhanz; 10-05-2018 at 12:31 PM.
    10-05-2018 11:48 AM

Similar Threads

  1. Your Phone app on 2 PC's
    By bulls96 in forum Windows 10
    Replies: 3
    Last Post: 10-22-2018, 01:47 PM
  2. Replies: 12
    Last Post: 10-07-2018, 10:47 AM
  3. Why my windows deleting my files?
    By Samaresh Das in forum Windows 10
    Replies: 2
    Last Post: 10-06-2018, 06:58 PM
  4. With Google lurking, gaming has never been more critical to Microsoft
    By in forum Windows Central News Discussion & Contests
    Replies: 0
    Last Post: 10-04-2018, 12:10 PM