"Issues Finding the Correct Microsoft WebView2 WinForms and Core DLLs with Evergreen Loader DLL

GnMGunnEdm-7636 0 Reputation points
2025-01-21T12:03:18.0766667+00:00

I installed the Microsoft evergreen webview2 runtime back in Dec.

I started to develop A WINFORM application using visual studio 2022 community and dotnet 8 targeting x64. After compiling the app I found I was using a wrong version of the winform and core dll for webview2 - a preview version in visual studio to be loaded by the webview2loader.dll during application run.

I searched for the DLLs, only found amd x64 or similar under vstd 2022 community preview folder.

outside that I found only x86 binary

I tried uninstall webview2 with command line and reboot(appwiz.cpl did not show webview2). after reboot however, trying the evergreen installer I got told already installed

what can I do?

Windows for business | Windows Client for IT Pros | User experience | Other
Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-22T06:21:10.49+00:00

    Hi @GnMGunnEdm-7636

    WebView2 Runtime is listed as a system component so it doesn't show in appwiz.cpl. As it's system component, you may not be able to uninstall it at all.

    Which version of WebView2 do you have? You could check the registry locations in this doc to identify the WebView2 Runtime version you install.

    Which version of WebView2 SDK you use in your WinForms app? If you're using a prerelease version of WebView2 SDK, please refer to this step to reinstall the right stable version of WebView2 SDK and rebuild your app. You should use a release version of the SDK along with the Runtime.

    For the dll files to ship with the app, you could refer to the example managed app folder structure:

    \<myApp>
        \Microsoft.Web.WebView2.Core.dll
        \Microsoft.Web.WebView2.Winforms.dll
        \Microsoft.Web.WebView2.WPF.dll
        \runtimes
            \win-arm64\native\WebView2Loader.dll (arm64)
            \win-x64\native\WebView2Loader.dll (x64)
            \win-x86\native\WebView2Loader.dll (x86)
    

    You can also refer to Distribute your app and the WebView2 Runtime for more detailed information.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,

    Yu Zhou

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.