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 rexhinahoxha opened this issue 1 year ago • 4 comments

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

rexhinahoxha avatar Apr 25 '24 15:04 rexhinahoxha

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 Apr 25 '24 15:04 github-actions[bot]

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

Sample.zip

rexhinahoxha avatar Apr 29 '24 12:04 rexhinahoxha

any update on this?

IrinaPykhova avatar May 23 '24 13:05 IrinaPykhova

Hi, do we have any update?

rexhinahoxha avatar Jun 13 '24 12:06 rexhinahoxha