Can not Build Project due to error message APPX110 Payload contains two or more files with the same destination path '.pdb'.
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] l have a WinUI application (<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>), which has a dependency in another Class Library project which Targets .net 6 & .net 7 (<TargetFrameworks>net6.0-windows10.0.19041.0;net7.0-windows10.0.19041.0</TargetFrameworks>). When l try to Build the Solution an error message Code APPX110 Payload contains two or more files with the same destination path 'MyClassLibrary.pdb'. Severity Code Description Project File Line Suppression State Details Error APPX1101 Payload contains two or more files with the same destination path 'C1.WinUI.Core.pdb'. Source files: C:\Users\User\Documents\WinUI\Controls\bin\Debug\net7.0-windows10.0.19041.0\MyClassLibrary.pdb C:\Users\User\Documents\WinUI\Controls\bin\Debug\net6.0-windows10.0.19041.0\MyClassLibrary.pdb C:\Users\User.nuget\packages\microsoft.windowsappsdk\1.5.240404000\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1515
Original Comments
Feedback Bot on 4/25/2024, 07:35 PM:
(private comment, text removed)
Ann Yang [MSFT] on 4/26/2024, 00:14 AM:
(private comment, text removed)
Rexhina Hoxha on 4/26/2024, 08:24 AM:
(private comment, text removed)
Rexhina Hoxha on 4/26/2024, 08:47 AM:
(private comment, text removed)
Feedback Bot on 5/7/2024, 07:45 PM:
(private comment, text removed)
Feedback Bot on 5/7/2024, 11:29 PM:
(private comment, text removed)
Original Solutions
(no solutions)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Closed similar issues:
- Payload contains two or more files with the same destination path "Budget Control.deps.json" (#6465), similarity score: 0.77
- Payload contains two or more files with the same destination path Compact.xbf (#599), similarity score: 0.73
- WinUI Desktop .Net 6.0 won't build (#4591), similarity score: 0.71
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Any news about this bug?
Here is the Sample you can reproduce the issue Sample.zip here is the recording
Hi, do we have any update?
@codendone is there any update? this bug is causing a lot of problems for us.
We're only seeing this issue with Github Actions. If I complile locally, all is well. If I submit a PR for my project, I receive this error
error APPX1101: Payload contains two or more files with the same destination path 'Microsoft.Maui.Controls.pri'. Source files: [D:path-to-my-project.csproj::TargetFramework=net8.0-windows10.0.19041.0]
@gcadmes-extron what I've seen is the error appear the second time you try to build a project. You should see the error easily if you compile again.
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
Turn off trimming or downgrade winappsdk to 1.5.240428000
@lgBlog any idea when is this going to be fixed?
I'm testing with Microsoft.WindowsAppSDK version 1.6.240923002 and dotnet 8.0.403 and still seeing the same issue. Any news about fixing this?
Suffering the same here after upgrading my .NET MAUI library NavEasy Any news @microsoftopensource ?
This bug is still happening in version 1.7.250401001. This is a critical bug for us. We needed to disable CI because Microsoft is not fixing this bug. Will it ever be fixed?
C:\Users\XXX.nuget\packages\microsoft.windowsappsdk\1.7.250401001\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1616,5): error APPX1101: Payload contains two or more files with the same destination path 'XXXXX.pdb'.