WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Payload contains two or more files with the same destination path

Open ghost1372 opened this issue 2 years ago • 2 comments

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

ghost1372 avatar Aug 18 '23 14:08 ghost1372

Same here, clear obj & bin folder works for me

zhuxb711 avatar Aug 24 '23 02:08 zhuxb711

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.

Jimbo99 avatar Dec 01 '23 11:12 Jimbo99