microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Can not Build Project due to error message APPX110 Payload contains two or more files with the same destination path '.pdb'.

Open vsfeedback opened this issue 1 year ago • 10 comments

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)

vsfeedback avatar May 15 '24 19:05 vsfeedback

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 15 '24 19:05 github-actions[bot]

Any news about this bug?

arivoir avatar May 23 '24 13:05 arivoir

Here is the Sample you can reproduce the issue Sample.zip here is the recording

20240426-174652-20240426-1544-34.1176407.zip

rexhinahoxha avatar May 23 '24 13:05 rexhinahoxha

Hi, do we have any update?

rexhinahoxha avatar Jun 13 '24 12:06 rexhinahoxha

@codendone is there any update? this bug is causing a lot of problems for us.

arivoir avatar Jun 27 '24 13:06 arivoir

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 avatar Jul 15 '24 19:07 gcadmes-extron

@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.

arivoir avatar Aug 06 '24 21:08 arivoir

<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>

Turn off trimming or downgrade winappsdk to 1.5.240428000

lgBlog avatar Aug 08 '24 04:08 lgBlog

@lgBlog any idea when is this going to be fixed?

arivoir avatar Aug 15 '24 16:08 arivoir

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?

arivoir avatar Oct 16 '24 15:10 arivoir

Suffering the same here after upgrading my .NET MAUI library NavEasy Any news @microsoftopensource ?

ederbond avatar Nov 18 '24 02:11 ederbond

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'.

arivoir avatar Apr 21 '25 13:04 arivoir