Skip to content

Custom deployment of WebView2Loader.dll and WV2-assemblies #1186

@DanielLWN

Description

@DanielLWN

Hello,

we have a .NET winforms application which uses the webview2-control. The application has an own deployment process, which loads assemblies and dlls from specific locations, or from the GAC / windows system path.

Is it somehow possible to set the location / path of the needed assemblies "Microsoft.Web.WebView2.Core.dll", "Microsoft.Web.WebView2.WinForms.dll" and the loader dll "WebView2Loader.dll"? Or to get them to load from the windows system dir / assembly cache?

I've tried to copy those files to the windows system dirs or install the assemblies to the windows GAC, but it seems the application does not find the files there, so the webview2-control does not work (stays blank). The only working solution i could find is to store the files in the same path where the exe is located.

Any help would be very appreciated, thank you.

Best regards,
Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions