-
-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi,
we are using your library to export content to PDF and we need to run the export using a fixed/specific version of the WebView2 Runtime, but currently there seems to be no way to do that.
Inside CoreWebViewHeadlessHost.InitializeAsync(), the WebView2 environment is created via:
CoreWebView2Environment.CreateAsync(userDataFolder: ...)
Unfortunately, this overload only allows specifying the userDataFolder, but not the browserExecutableFolder, which is required if we want to point to a fixed WebView2 Runtime instance.
The same limitation appears in other places where CoreWebView2Environment.CreateAsync() is called by the library.
Is there a supported way to configure or override the CoreWebView2Environment creation to allow using a fixed WebView2 Runtime?
If not, would you consider adding this capability?
Thanks for your support.