Skip to main content

Evergreen Webview2 Info

What are you using? (WinForms, WPF, WinUI 3, C++?)

The key principles of Evergreen WebView2 are:

: List WebView2 as an external dependency in your app manifest to ensure it is installed automatically by Windows during app setup. Are you building for a specific framework evergreen webview2

Browser processes can crash independently of your main application. Subscribe to the CoreWebView2.ProcessFailed event to log errors and cleanly reload the environment without forcing a full application restart. Conclusion

Because many core Windows apps (like Teams) now rely on it, the WebView2 runtime often reinstalls itself if manually removed by a user. What are you using

The Evergreen model relies on a shared runtime installed on the user's machine. This runtime updates automatically in the background, independently of your application.

Leverage the WebView2 Preview Channels (Beta, Dev, and Canary). Set up automated Continuous Integration (CI) pipelines to run UI automation tests against these pre-release channels. This gives you a multi-week warning before a breaking change hits your production users. Managing Runtime Availability Subscribe to the CoreWebView2

Multiple apps share a single runtime on the device, saving disk space.

// Notice: No path specified. The runtime will find the Evergreen runtime. var env = await CoreWebView2Environment.CreateAsync(); await webView.EnsureCoreWebView2Async(env); // Navigate to your local or remote app webView.CoreWebView2.Navigate("https://my-saas-dashboard.com");

| Feature | Evergreen | Fixed Version | |---------|-----------|---------------| | | Automatic via Windows Update | Manual—requires app recompilation | | Disk Space | Shared across all WebView2 apps | Separate copy per app | | Version Control | App cannot specify a particular version | Full control over runtime version | | Internet Requirement | Bootstrapper requires internet (offline installer available) | No internet required after packaging | | Recommended For | Most applications | Strict compatibility requirements | | OS Integration | Preinstalled on Windows 11 devices | Standalone packaged component | | Installation Method | Bootstrapper or offline installer | Bundled with application package |