Since version 152.0.4191.53 WebView2 no more fits in nuget limit of 250 megabytes, so to somehow fit in this limit now it splitted into 2 packages. Now you REQUIRE to install both WebView2.Runtime.Arch and WebView2.Runtime.Arch.Core packages.
Since version 137.0.3296.52 WebView2 no more fits in nuget limit of 250 megabytes, so to reduce package size runtime now contains only english language. If you want all others languages, just install WebView2.Runtime.Locales package.
Install-Package WebView2.Runtime.X64
Install-Package WebView2.Runtime.X64.Core
var webView = new WebView2() { Dock = DockStyle.Fill };
await webView.EnsureCoreWebView2Async(await CoreWebView2Environment.CreateAsync(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebView2")));
Controls.Add(webView);
webView.CoreWebView2.Navigate("https://nuget.org/");
You can use package WebView2.Runtime.AutoInstaller to check current WebView2 runtime installed status and automate install it.
This type of installation requires running the program as an administrator (or installer will request them independently) and ethernet connection.
Source of this library you can find here.
Install-Package WebView2.Runtime.AutoInstaller
// Check and install if not installed
await WebView2AutoInstaller.CheckAndInstallAsync();
// Only check, return true or false
await WebView2AutoInstaller.CheckAndInstallAsync(true);
// Show runtime installer window
await WebView2AutoInstaller.CheckAndInstallAsync(false, false);
// Set custom path to runtime installer (maybee you put it into application resources).
await WebView2AutoInstaller.CheckAndInstallAsync(false, false, "path");
You can found samples in Samples directory. Also check official microsoft edge samples repository.

75 commits
PowerShell
58.9%
C#
41.1%
Since version 152.0.4191.53 WebView2 no more fits in nuget limit of 250 megabytes, so to somehow fit in this limit now it splitted into 2 packages. Now you REQUIRE to install both WebView2.Runtime.Arch and WebView2.Runtime.Arch.Core packages.
Since version 137.0.3296.52 WebView2 no more fits in nuget limit of 250 megabytes, so to reduce package size runtime now contains only english language. If you want all others languages, just install WebView2.Runtime.Locales package.
Install-Package WebView2.Runtime.X64
Install-Package WebView2.Runtime.X64.Core
var webView = new WebView2() { Dock = DockStyle.Fill };
await webView.EnsureCoreWebView2Async(await CoreWebView2Environment.CreateAsync(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebView2")));
Controls.Add(webView);
webView.CoreWebView2.Navigate("https://nuget.org/");
You can use package WebView2.Runtime.AutoInstaller to check current WebView2 runtime installed status and automate install it.
This type of installation requires running the program as an administrator (or installer will request them independently) and ethernet connection.
Source of this library you can find here.
Install-Package WebView2.Runtime.AutoInstaller
// Check and install if not installed
await WebView2AutoInstaller.CheckAndInstallAsync();
// Only check, return true or false
await WebView2AutoInstaller.CheckAndInstallAsync(true);
// Show runtime installer window
await WebView2AutoInstaller.CheckAndInstallAsync(false, false);
// Set custom path to runtime installer (maybee you put it into application resources).
await WebView2AutoInstaller.CheckAndInstallAsync(false, false, "path");
You can found samples in Samples directory. Also check official microsoft edge samples repository.

75 commits
PowerShell
58.9%
C#
41.1%