Skip to content

Use a fixed version of WebWiew2 already stored #3

@simonelopriore

Description

@simonelopriore

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions