Payload contains two or more files with the same destination path 'xxx.pdb' when publishing trying to create a MSIX package

Steven Roman 20 Reputation points
2025-01-31T21:54:57.5533333+00:00

Hello,

I'm following these instructions:

https://learn.microsoft.com/en-us/dotnet/maui/windows/setup?view=net-maui-9.0

I'd previously tried Geralds command line build but that failed and led me to the article above.

I imagine its still pretty new but if anyone has any suggestions I'd appreciate it.

Steven

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,887 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Steven Roman 20 Reputation points
    2025-02-04T15:49:01.99+00:00
    1. In the csproj file I have <WindowsPackageType>MSIX</WindowsPackageType>
    2. Select "Windows Machine" in Visual Studio Target
    3. Right Click Solution name and select "Publish"
    4. Select Distubution method as Microsoft Store as <Project Name> by <fake company name>
    5. Click Next
    6. Select Auto Increment on version
    7. Select single publish profile created by clicking on new in the dropdown, click both check boxes. Click Create.
    8. Compile starts and errors with message in title.

    output folder: bin\Debug\net9.0-windows10.0.19041.0\win10-x64* only has one copy of the custom control I made. I did try deleting all of bin\Debug\net9.0-windows10.0.19041.0*

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.