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.38k 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'. #9583

Open rexhinahoxha opened 7 months ago

rexhinahoxha commented 7 months ago

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

  1. Create a WinUI project targeting .net 8
  2. Create a Class Library which Targets .net 6 and .net 7
  3. Add as dependency Class Library to the Output Project
  4. Build the project

Expected behavior

Build success

Screenshots

image

NuGet package version

None

Windows version

Windows 10 (20H2): Build 19042

Additional context

No response Sample.zip

github-actions[bot] commented 7 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.

rexhinahoxha commented 7 months ago

Hi, please find as well the sample which reproduces the issue. thanks

Sample.zip

IrinaPykhova commented 6 months ago

any update on this?

rexhinahoxha commented 5 months ago

Hi, do we have any update?