In Visual Studio 2019, using Nuget
, I have installed Microsoft.Web.WebView2
package.
PM> Install-Package Microsoft.Web.WebView2 -Version 0.9.430
As explained on Web, I have installed new Microsoft Edge Chromium Canary
version (it is important).
Now, when I open the Toolbox, I don't see any WebView2
control.
Before that, I have installed WebView
control (old version that is working with old Edge browser).
After installing WebView
, the control has been visible immediately in Toolbox.
But this is not the case with WebView2
control.
I have tried to add in Toolbox all controls from Microsoft.Web.WebView2
package manually.
But Visual Studio refuses to load WebView2Loader.dll
found in following folder
C:\Users\bernard\.nuget\packages\microsoft.web.webview2\0.9.430\build\x86
I have also tried with DLL found in
C:\Users\bernard\.nuget\packages\microsoft.web.webview2\0.9.430\build\x64
Is there possible to install WebView2 control in Toolbox ?
If yes, how ?
EDIT: According to this post you need to use Canary or Dev build of Edge or the Edge WebView2 Preview no matter what version is supposed to work according to the release notes.
The main reason people have this problem is because they have not installed the required version of Edge.
Check the release notes. For each release you see the "minimum Microsoft Edge version". For example, when you install the latest WebView2 release 0.9.579 (released 07/20/2020) it requires Edge 86.0.579.0
but the official Edge build is (on that day) 84.0.522.
So the answer is:
Important: Do not downgrade! Uninstall WebView2
Nuget package, restart VS, install an older version of it, to be on the safe side.