Winui3 Webview2 AddHostObjectToScript fails... #5221
Unanswered
VishyBala007
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I am working with Winui3 with latest target framework
10.0.26100.0
Now adding weview2 controls works fine.
But I need to interact with JS like we do in UWP using runtime component link mentioned blow
https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/winrt-from-js?tabs=winui3%2Cwinrtcsharp
Same i want to do same with winui3 but its failed to build after adding the winrtadapter project
Single-project MSIX Packaging Tools also installed
but still getting same error
WinRTAdapter.winmd cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see https://aka.ms/netsdk1130
Beta Was this translation helpful? Give feedback.
All reactions