Open zznty opened 2 months ago
I’m not sure that A) you are using correct ComWrappers instance and B) I have support only for Net 7. Have to finish interface implementation for Net 8 which is tiresome
can you tell me what TFM are you targeting? And how do you enable ComWrappers?
Looks like I was targeting net 8 as it has somewhat working built-in ComWrappers source generator. Probably would have to wait for you to add support of net 8.
An update for this issue. I had to write a source generator for IDispatch COM interface implementation and to get around that exception from Marshal.GetNativeVariantForObject
, call ICoreWebView2 directly.
I was working with WebView2 COM wrappers and encountered an issue where calling
CoreWebView2.AddHostObjectToScript
which produces the following outputI assume COM wrappers source generator unintentionally emits a call into this method instead of using ComWrappers-specific code.