Payload contains two or more files with the same destination path
Describe the bug
After updating to v1.4-preview2 and returning to the previous version (v1.3.3), we get the following error
APPX1101 Payload contains two or more files with the same destination path 'Microsoft.WindowsAppRuntime.Bootstrap.dll'. Source files:
net7.0-windows10.0.19041.0\win10-x64\MsixContent\Microsoft.WindowsAppRuntime.Bootstrap.dll
.nuget\packages\microsoft.windowsappsdk\1.3.230724000\runtimes\win10-x64\native\Microsoft.WindowsAppRuntime.Bootstrap.dll .nuget\packages\microsoft.windowsappsdk\1.3.230724000\buildTransitive\Microsoft.Build.Msix.Packaging.targets
We need to close and reopen Visual Studio and remove bin and obj folder to solve the problem
Steps to reproduce the bug
1.create a new project with v1.3.3 2.update to v1.4-preview2 3.update to v1.3.3
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
Same here, clear obj & bin folder works for me
I just had this happen too - the same build error, when I reverted to v1.3.230602002 from v1.4.231115000.
Explicitly selecting "Clean" from the Build menu of Visual Studio 2022 v17.8.2 did not help - the build error remained.
Deleting the bin and obj folders did work. Many thanks for posting your workaround, @ghost1372.
Sometimes we need to revert to older versions, e.g. in my case I needed to recreate a customer's situation who is using an older version of our app. Yes, the workaround is easy to perform but it took a while to discover it, and will affect other devs too, presumably.