WebView2 version

Hi,

In FindWebView2.cmake, there’s a command showing how to install the WebView2 package that contains the statically linked library:

Register-PackageSource -provider NuGet -name nugetRepository -location https://www.nuget.org/api/v2
Install-Package Microsoft.Web.WebView2 -Scope CurrentUser -RequiredVersion 1.0.1901.177 -Source nugetRepository

However, the latest release of the WebView2 package is 1.0.3485.44.

Is JUCE suggesting to install an older version rather than the most recent one? Or can I safely try to install the latest version and link with that?

Best,
Jelle

2 Likes

Please try to link with the newest one.

The example command uses a version that we’ve tested ourselves, to be safe, but our goal is to be compatible with the latest WebView2 package version, and will bump that version occasionally. So if you encounter issues with the newest one, please report it as a bug.

3 Likes

I had to modify the projucer to pull the latest WebView2 package because the older one doesn’t work on ARM64ec builds. I also had to force it to link against the x64 lib instead of the ARM lib, otherwise it won’t compile.

Haven’t had any issues at runtime with the latest one

3 Likes