Payload contains two or more files with the same destination path 'xxx.pdb' when publishing trying to create a MSIX package
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
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) • 48,096 Reputation points • Microsoft Vendor
2025-02-03T05:23:54.34+00:00 This error is usually caused by the cache or version of the Nuget Package. Please edit the following information into the problem.
- The Maui version.
- What Nuget Pakcage did you quote? Do they support the corresponding MAUI version?
Your prompt reply will be highly appreciated.
-
Steven Roman • 20 Reputation points
2025-02-03T23:56:52.8366667+00:00 Hello,
The pdb I quoted isn't a nuget package, its a maui UI library I made so I can share it between other projects.
The only way I know to get my Maui Version is by running the workload list, the output including an unnamed exception are here:
dotnet workload list
Welcome to .NET 9.0!
SDK Version: 9.0.102
Telemetry
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
Checking the state of installed workloads...
Downloading Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-arm64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-x64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-x86.Msi.x64 (8.0.12)
Downloading Microsoft.NET.Runtime.MonoAOTCompiler.Task.Msi.x64 (8.0.12)
Downloading Microsoft.NET.Runtime.MonoTargets.Sdk.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-arm64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-x64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.android-x86.Msi.x64 (9.0.1)
Downloading Microsoft.NET.Runtime.MonoAOTCompiler.Task.Msi.x64 (9.0.1)
Downloading Microsoft.NET.Runtime.MonoTargets.Sdk.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.ios-arm64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.ios-arm64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64.Msi.x64 (9.0.1)
Downloading Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64.Msi.x64 (8.0.12)
Downloading Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64.Msi.x64 (8.0.12)
Downloading Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.Msi.x64 (9.0.14)
Downloading Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Sdk.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Sdk.Msi.x64 (8.0.100)
Downloading Microsoft.Maui.Graphics.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Resizetizer.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Templates.net9.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Templates.net8.Msi.x64 (8.0.100)
Downloading Microsoft.Maui.Core.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Controls.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Controls.Build.Tasks.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Controls.Core.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Controls.Xaml.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Controls.Compatibility.Msi.x64 (9.0.14)
Downloading Microsoft.Maui.Essentials.Msi.x64 (9.0.14)
Installed Workload Id Manifest Version Installation Source
android 35.0.24/9.0.100 SDK 9.0.100, VS 17.12.35707.178
ios 18.2.9170/9.0.100 SDK 9.0.100, VS 17.12.35707.178
maccatalyst 18.2.9170/9.0.100 SDK 9.0.100, VS 17.12.35707.178
maui-windows 9.0.14/9.0.100 SDK 9.0.100, VS 17.12.35707.178
Use
dotnet workload search
to find additional workloads to install.Updates are available for the following workload(s): android ios maccatalyst maui-windows. Run
dotnet workload update
to get the latest.Unhandled exception.
I was not expecting the workload list to download files but I'm thinking it didn't actually install them just gets them ready to install. A bit shy about doing the workload update, last time that screwed me up for days.
S
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) • 48,096 Reputation points • Microsoft Vendor
2025-02-04T03:06:06.96+00:00 Thanks for your feedback.
Could you please provide the exact steps that can reproduce this issue and update it in the question?
-
Steven Roman • 20 Reputation points
2025-02-04T15:49:01.99+00:00 - In the csproj file I have <WindowsPackageType>MSIX</WindowsPackageType>
- Select "Windows Machine" in Visual Studio Target
- Right Click Solution name and select "Publish"
- Select Distubution method as Microsoft Store as <Project Name> by <fake company name>
- Click Next
- Select Auto Increment on version
- Select single publish profile created by clicking on new in the dropdown, click both check boxes. Click Create.
- 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*
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) • 48,096 Reputation points • Microsoft Vendor
2025-02-06T07:06:13.9333333+00:00 I have followed the steps you provided to try to reproduce this issue, but this error did not occur during the release process.
The versions of Visual Studio I am using are as follows:
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.12.0
Have you updated Visual Studio to the latest version?
Sign in to comment