Gtk.Windows.Forms.WebView2 1.4.2464.26239

dotnet add package Gtk.Windows.Forms.WebView2 --version 1.4.2464.26239
                    
NuGet\Install-Package Gtk.Windows.Forms.WebView2 -Version 1.4.2464.26239
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gtk.Windows.Forms.WebView2" Version="1.4.2464.26239" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gtk.Windows.Forms.WebView2" Version="1.4.2464.26239" />
                    
Directory.Packages.props
<PackageReference Include="Gtk.Windows.Forms.WebView2" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Gtk.Windows.Forms.WebView2 --version 1.4.2464.26239
                    
#r "nuget: Gtk.Windows.Forms.WebView2, 1.4.2464.26239"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Gtk.Windows.Forms.WebView2@1.4.2464.26239
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Gtk.Windows.Forms.WebView2&version=1.4.2464.26239
                    
Install as a Cake Addin
#tool nuget:?package=Gtk.Windows.Forms.WebView2&version=1.4.2464.26239
                    
Install as a Cake Tool

Gtk.Windows.Forms.WebView2

The Windows engine behind System.Windows.Forms.WebBrowser in Gtk.Windows.Forms.

Reference the package and nothing else: a module initializer registers the backend with WebViewBackendFactory, above the WebKitGTK one, so WebBrowser picks it up on Windows.

<PackageReference Include="Gtk.Windows.Forms.WebView2" Version="..." />

Without this package a WebBrowser on Windows finds no engine — WebKitGTK 6.0 is a Linux and macOS library — and falls back to a placeholder that shows a message and reports every navigation as failed.

What you are accepting

Airspace. GTK 4 gives a window handle only to toplevel windows; every widget inside one is drawn, not hosted. The browser is therefore a child window of the form's handle, positioned over the area the control occupies. It paints above all GTK content in that window: overlapping widgets, popovers, menus, drop-downs and window opacity do not clip it. There is no fix short of compositing the page into a GTK texture, which costs a frame copy on every paint.

Stale reads. As with the WebKitGTK backend, HtmlDocument and HtmlElement read a cached snapshot of the page rather than the live DOM, and InvokeMember / InvokeScript post the call and return null. Both are recorded in the library's EMULATION-GAPS.md; Gtk.Windows.Extensions carries async siblings that do return values.

No incremental progress. WebView2 reports no load percentage, so ProgressChanged fires with 0 when a navigation starts and 100 when it completes, rather than counting up.

The runtime

The package needs the Microsoft Edge WebView2 Runtime, which ships with Windows 11 and with recent Edge installs. Check for it before you rely on it:

if (!WebView2Runtime.IsRuntimeAvailable)
{
    // WebBrowser will fall back to the placeholder.
}

Nothing is downloaded unasked. If your application is willing to fetch Microsoft's Evergreen bootstrapper on its users' machines, say so explicitly before the first WebBrowser is created:

WebView2Runtime.AllowRuntimeBootstrap = true;

That is an application's decision, not a library's, which is why the switch lives here rather than on System.Windows.Forms.WebBrowser — that type mirrors real WinForms, and additions belong in companion packages.

Licence

LGPL v3, the licence the vendored upstream carries. See LICENSE.txt in the package.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.2464.26239 38 8/27/2026
1.4.2464.26236 77 8/24/2026
1.3.2464.26229 102 8/16/2026