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

MSIX packaging error with mismatched Windows SDK TFMs across projects #1830

Open
Sergio0694 opened this issue Oct 16, 2024 · 0 comments
Open
Assignees
Labels
authoring Related to authoring feature work pri-1

Comments

@Sergio0694
Copy link
Member

Describe the bug

Using a different TFM in an authored project causes a build failure when referenced by an app with a different TFM:

Payload contains two or more files with the same destination path 'Microsoft.Windows.UI.Xaml.dll'. Source files: 
D:\.nuget\packages\microsoft.windows.sdk.net.ref\10.0.26100.54\lib\net8.0\Microsoft.Windows.UI.Xaml.dll
D:\.nuget\packages\microsoft.windows.sdk.net.ref\10.0.22621.54\lib\net8.0\Microsoft.Windows.UI.Xaml.dll

To Reproduce

  1. Have a WinRT component targeting eg. 10.0.22621.0
  2. Reference it from an app targeting 26100
  3. Package with MSIX
  4. Build

Expected behavior

Should correctly pick the right .dll for the highest TFM (from the app).

Version Info
CsWinRT 2.1.6

@Sergio0694 Sergio0694 added authoring Related to authoring feature work pri-1 labels Oct 16, 2024
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 pri-1
Projects
None yet
Development

No branches or pull requests

2 participants