CsWinRT
CsWinRT copied to clipboard
CsWinRT component project referencing other C# projects is causing error APPX1101
Describe the bug Found this issue when working on Dev Home where we're authoring a component that references other C# projects.
Pull request where this issue repros: https://github.com/microsoft/devhome/pull/3134
Mitigation: https://github.com/microsoft/CsWinRT/issues/1327#issuecomment-1549129528
Error output
D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: Payload contains two or more files with the same destination path 'Microsoft.Win32.Registry.AccessControl.dll'. Source files: [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\microsoft.win32.registry.accesscontrol\8.0.0\runtimes\win\lib\net8.0\Microsoft.Win32.Registry.AccessControl.dll [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\microsoft.win32.registry.accesscontrol\8.0.0\lib\net8.0\Microsoft.Win32.Registry.AccessControl.dll [D:\a\devhome\devhome\src\DevHome.csproj]
D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: Payload contains two or more files with the same destination path 'System.Diagnostics.EventLog.dll'. Source files: [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.diagnostics.eventlog\8.0.0\runtimes\win\lib\net8.0\System.Diagnostics.EventLog.dll [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.diagnostics.eventlog\8.0.0\lib\net8.0\System.Diagnostics.EventLog.dll [D:\a\devhome\devhome\src\DevHome.csproj]
D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: Payload contains two or more files with the same destination path 'System.DirectoryServices.dll'. Source files: [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.directoryservices\8.0.0\runtimes\win\lib\net8.0\System.DirectoryServices.dll [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.directoryservices\8.0.0\lib\net8.0\System.DirectoryServices.dll [D:\a\devhome\devhome\src\DevHome.csproj]
D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: Payload contains two or more files with the same destination path 'System.Management.dll'. Source files: [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.management\8.0.0\runtimes\win\lib\net8.0\System.Management.dll [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.management\8.0.0\lib\net8.0\System.Management.dll [D:\a\devhome\devhome\src\DevHome.csproj]
D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: Payload contains two or more files with the same destination path 'System.Security.Cryptography.Pkcs.dll'. Source files: [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.security.cryptography.pkcs\8.0.0\runtimes\win\lib\net8.0\System.Security.Cryptography.Pkcs.dll [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.security.cryptography.pkcs\8.0.0\lib\net8.0\System.Security.Cryptography.Pkcs.dll [D:\a\devhome\devhome\src\DevHome.csproj]
D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: Payload contains two or more files with the same destination path 'System.Windows.Extensions.dll'. Source files: [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.windows.extensions\8.0.0\runtimes\win\lib\net8.0\System.Windows.Extensions.dll [D:\a\devhome\devhome\src\DevHome.csproj]
##[error]D:\a\devhome\devhome\packages\microsoft.windowsappsdk\1.5.240311000\buildTransitive\Microsoft.Build.Msix.Packaging.targets(1515,5): error APPX1101: D:\a\devhome\devhome\packages\system.windows.extensions\8.0.0\lib\net8.0\System.Windows.Extensions.dll [D:\a\devhome\devhome\src\DevHome.csproj]
We are not able to do any background task APPX1101 Payload contains two or more files with the same destination path 'WinRT.Runtime.dll'. Source files: C:\Users\roshan.bhore.nuget\packages\microsoft.windows.cswinrt\2.0.7\lib\net6.0\WinRT.Runtime.dll C:\Users\roshan.bhore.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.31\lib\net6.0\WinRT.Runtime.dll CCApp C:\Users\roshan.bhore.nuget\packages\microsoft.windowsappsdk\1.5.240607001\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1532
Any timeline for this issue?
We are not able to do any background task APPX1101 Payload contains two or more files with the same destination path 'WinRT.Runtime.dll'. Source files: C:\Users\roshan.bhore.nuget\packages\microsoft.windows.cswinrt\2.0.7\lib\net6.0\WinRT.Runtime.dll C:\Users\roshan.bhore.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.31\lib\net6.0\WinRT.Runtime.dll CCApp C:\Users\roshan.bhore.nuget\packages\microsoft.windowsappsdk\1.5.240607001\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1532
Any timeline for this issue?
Even though both your issue and the above have similar error messages, they are different issues. I think this might be fixed in the next release as we had a related fix in #1643. What is your projection structure? Is it a C# app and a C# library which is an authoring component or is it a C# native app?
I am using Winui3 package application, just wanted to add background task - but as it is currently impossible to integrate the same with class library with APPX1101 error