question

JessHung-2558 avatar image
0 Votes"
JessHung-2558 asked TimonYang-MSFT answered

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

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.

dotnet-csharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TimonYang-MSFT avatar image
0 Votes"
TimonYang-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered Castorix31 edited

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...)


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.