Open brandon-solemma opened 2 years ago
@brandon-solemma Did you ever end up finding a solution to this? I believe Revit 2025 uses WebView2 but I am trying to find a solution that works for 2022-2025. Thanks!
@alfarok no we could not get this to work, and moved to another type of solution.
ETO + WebView2 + Revit doesn't load not and falls back to
WebView
instead ofWebView2
. When testing a standalone ETO(v. 2.6)+ WebView2(v. 1.0.1245.22) application, it successfully creates theWebView2
window. Also this example of WebView2 + WPF + Revit is successful.WebView2 does seem to be supported in Revit as an Add-in, however When running
Eto.Wpf.Forms.Controls.WebView2Loader.Create();
outputsCould not Load file or assembly Microsoft.Web.WebView2.Wpf
which we believe is the the reason in the Revit exampleWebView
runs instead ofWebView2
since it falls back given this exception. This is referenced in thetry/catch
of PR #1829 in Eto.Wpf/Platform.cs. Even though the WebView2 NuGet Package is installed.Code that Demonstrates the Problem
ETO + WebView2 Works
Webview2 + WPF + Revit Works
ETO + WebView2 + Revit Doesn’t Work
Specifications
Related Issue
Related to issue #2271 , however this issue is specific to Revit