Share via


Error APPX1101: Payload contains two or more files with the same destination path "Properties\Default.rd.xml"

Question

Tuesday, March 5, 2019 8:46 AM

Hi,

According to the steps here, I got errors after build the solution. I update my VS2017 from v15.9.3 to the v15.9.7, but those errors still happen. How to fix this problem?

All replies (6)

Friday, March 8, 2019 1:23 AM âś…Answered

Hello moyanming2013,

I have downloaded the repro you shared. I found that the Default.rd.xml file is still in the Properties folder in Background Application. Please make sure you had removed this file, and then you also need to change the target device of the Background Application as remote device. It works for me.

Best Regards,

Michael

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Wednesday, March 6, 2019 2:30 AM

Hello moyanming2013,

Since you added the background app project to the uwp app project as a reference, the background project also included the Default.rd.xml file. You can try to remove this file in background app project, and then rebuild the solution. Add more, you also need to change the debugger of the background app project for remote device.

Best Regards,

Michael

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Wednesday, March 6, 2019 3:37 AM

Hi Michael,

Thank you for your reply.

1. I have make sure that the background app and the Blank App (App1) are both set to the remote device.

2. After deleted the "Default.rd.xml" of the background app and rebuild all the solution, there is one more error:

Microsoft.AppXPackage.Targets(2780,5): error APPX0702 (the file not exist)

3. Please do it yourself first.


Thursday, March 7, 2019 1:47 AM

Hello moyanming2013,

I have tested the solution, it works for me. Have you tried to delete the bin and obj folder in the project?

If the error is still not fixed, could you please share your project?

Best Regards,

Michael

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Thursday, March 7, 2019 4:16 AM

Hi Michael,

I have test by delete the bin and obj of two project, after clean and rebuild the solution there still the same error.

Here is the project.

Thanks.


Friday, March 8, 2019 12:39 PM

Hi Michael,

I am sorry for the misunderstand the "Remove" mean. I just delete the Default.rd.xml file in the properties folder but not remove this file from the background project.

All works fine now.

Thank you for your patient.