Can not Build Project due to error message APPX110 Payload contains two or more files with the same destination path '.pdb'.
Describe the bug
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: \bin\Debug\net7.0-windows10.0.19041.0\MyClassLibrary.pdb \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
Steps to reproduce the bug
- Create a WinUI project targeting .net 8
- Create a Class Library which Targets .net 6 and .net 7
- Add as dependency Class Library to the Output Project
- Build the project
Expected behavior
Build success
Screenshots
NuGet package version
None
Windows version
Windows 10 (20H2): Build 19042
Additional context
No response Sample.zip
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.81
- Build errors after adding WinUI 3 library to WinUI App (#7657), similarity score: 0.75
- Payload contains two or more files with the same destination path Compact.xbf (#599), similarity score: 0.75
- WinUI 3 App - mspdbcmf.exe Missing so cannot package project using VS 2022 17.1 and .NET 6.0.2 SDK (#6746), similarity score: 0.74
- Error in Create App Packages for Microsoft Store from a .wapproj (#3554), similarity score: 0.72
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
any update on this?
Hi, do we have any update?