Which version of WebView2 Runtime must be installed for AnyCPU development?

Jesús Hung 1 Reputation point
2021-08-03T21:51:56.8+00:00

I am working with VS2019 on Windows 10 x64. I have the AnyCPU option selected. I would like to know which version of the WebView2 Runtime should I install on my machine if I want to package the Webview2 control into my application, and have it run on both 32bit and 64bit client machines. Thanks in advance.

Developer technologies | C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2021-08-03T22:55:18.37+00:00

    I have the same configuration and I installed
    MicrosoftEdgeWebView2RuntimeInstallerX64.exe
    from Download the WebView2 Runtime
    (but if the target OS is 32-bit, you will need MicrosoftEdgeWebView2RuntimeInstallerX86.exe, as explained at Offline deployment...)

    1 person found this answer helpful.
    0 comments No comments

  2. Timon Yang-MSFT 9,606 Reputation points
    2021-08-04T02:36:28.607+00:00

    32-bit programs can run on 64-bit operating systems, but not vice versa.

    If you use the 64-bit WebView2 Runtime, you may not get an error when testing the application, but some users with a 32-bit operating system may not be able to use it.

    So, if you only want to develop one version of the application, the 32-bit version is better.

    If possible, it may be better to provide two versions for a total of user choices. We can see that most commercial software does this.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    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.