Issue on C++/WinRT app consumes a C# component with WinUI3 controls #1199
-
I follow this article to consume c# UI component in C++/WinRT app. But I got an error saying "Payload contains two or more files with the same destination path "WinRT.Runtime.dll" I looked at the samples here https://github.com/microsoft/CsWinRT/tree/master/src/Samples/AuthoringDemo But unfortunately, the WinUI3CppApp is not consuming a UI component. Could anyone share a working sample with me that a C# UI component is consumed by C++ App? Thanks! email: [email protected] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@lcmsft this looks similar to the issue #1151 and the current workaround is to set Here is a working sample: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/CustomControls cc @j0shuams |
Beta Was this translation helpful? Give feedback.
-
Thanks. The sample provided works! |
Beta Was this translation helpful? Give feedback.
@lcmsft this looks similar to the issue #1151 and the current workaround is to set
PublishReadyToRun
toFalse
. That issue should be resolved for 1.1 GA.Here is a working sample: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/CustomControls
cc @j0shuams