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

WindowsAppSDK authoring project build fails on command line (error with PublishReadyToRun) #1151

Closed
angelazhangmsft opened this issue Mar 30, 2022 · 6 comments
Assignees
Labels
authoring Related to authoring feature work bug Something isn't working
Milestone

Comments

@angelazhangmsft
Copy link
Collaborator

angelazhangmsft commented Mar 30, 2022

Describe the bug

Authoring with Windows App SDK and a project reference to the component causes an error on command line build.

This is being tracked internally: task.ms/39285537

To Reproduce

  1. See Add CsWinRT authoring samples WindowsAppSDK-Samples#174
  2. Build pipeline error: C:\Users\cloudtest\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\Microsoft.Build.Msix.Packaging.targets#L1370 C:\Users\cloudtest\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\Microsoft.Build.Msix.Packaging.targets(1370,5): Error APPX1101: Payload contains two or more files with the same destination path 'WinRT.Host.Shim.dll'. Source files: D:\a\_work\1\s\Samples\CustomControls\CsApp\obj\x86\Release\net6.0-windows10.0.19041.0\win10-x86\R2R\WinRT.Host.Shim.dll C:\Users\cloudtest\.nuget\packages\microsoft.windows.cswinrt\1.6.1\lib\net5.0\WinRT.Host.Shim.dll

Expected behavior

Build with no errors

Version Info

CsWinRT 1.6.1
.NET 6

@angelazhangmsft angelazhangmsft added bug Something isn't working authoring Related to authoring feature work labels Mar 30, 2022
@angelazhangmsft angelazhangmsft added this to the Release 1.6.3 milestone Apr 1, 2022
@angelazhangmsft
Copy link
Collaborator Author

Current workaround is to set PublishReadyToRun to False in each pubxml file:
image

@angelazhangmsft angelazhangmsft changed the title WindowsAppSDK authoring project build fails on command line WindowsAppSDK authoring project build fails on command line (error with PublishReadyToRun) May 9, 2022
@manodasanW
Copy link
Member

Will be addressed in WinAppSDK.

@manodasanW manodasanW modified the milestones: Release 1.6.5, Future Jun 7, 2022
@evelynwu-msft
Copy link
Contributor

This was fixed in WinAppSdk 1.1.

@manodasanW
Copy link
Member

manodasanW commented Jun 7, 2022

Thanks @evelynwu-msft. @j0shuams can you confirm the samples work fine now with 1.1 and resolve this.

@manodasanW manodasanW modified the milestones: Future, Release 1.6.5 Jun 7, 2022
@j0shuams
Copy link
Contributor

j0shuams commented Jun 7, 2022

Yep, @angelazhangmsft confirmed when she merged her Samples PR IIRC (microsoft/WindowsAppSDK-Samples#174)

@j0shuams j0shuams closed this as completed Jun 7, 2022
@angelazhangmsft
Copy link
Collaborator Author

Yep, @angelazhangmsft confirmed when she merged her Samples PR IIRC (microsoft/WindowsAppSDK-Samples#174)

I merged in the samples with 1.1 Preview 3, but they can be updated to 1.1 GA removing the PublishReadyToRun=False workaround

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

4 participants