Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsWinRT component project referencing other C# projects is causing error APPX1101 #1650

Open
AmelBawa-msft opened this issue Jun 26, 2024 · 3 comments
Labels
authoring Related to authoring feature work bug Something isn't working

Comments

@AmelBawa-msft
Copy link

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:
microsoft/devhome#3134

Mitigation:
#1327 (comment)

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]
@AmelBawa-msft AmelBawa-msft added the bug Something isn't working label Jun 26, 2024
@manodasanW manodasanW added the authoring Related to authoring feature work label Jun 27, 2024
@roshan27b
Copy link

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?

@manodasanW
Copy link
Member

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?

@roshan27b
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authoring Related to authoring feature work bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants