microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.37k stars 683 forks source link

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

Open vsfeedback opened 6 months ago

vsfeedback commented 6 months ago

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 (net8.0-windows10.0.19041.0), which has a dependency in another Class Library project which Targets .net 6 & .net 7 (net6.0-windows10.0.19041.0;net7.0-windows10.0.19041.0). 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)

github-actions[bot] commented 6 months ago

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.

arivoir commented 6 months ago

Any news about this bug?

rexhinahoxha commented 6 months ago

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

20240426-174652-20240426-1544-34.1176407.zip

rexhinahoxha commented 5 months ago

Hi, do we have any update?

arivoir commented 5 months ago

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

gcadmes-extron commented 4 months ago

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]

arivoir commented 3 months ago

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

lgBlog commented 3 months ago

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

Turn off trimming or downgrade winappsdk to 1.5.240428000

arivoir commented 3 months ago

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

arivoir commented 1 month ago

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?

ederbond commented 6 days ago

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