Getting Started tutorials
These articles cover how to set up your development tools and create an initial WebView2 app, like a Hello World app with basic functionality. Learn about WebView2 concepts along the way.
|Get started with WebView2 in WinUI 2 (UWP) apps||WinUI2_GettingStarted||Use C# Blank App (Universal Windows) project template and install the Microsoft.UI.Xaml package (WinUI 2), which installs the Microsoft.Web.WebView2 SDK package as a dependency.|
|Get started with WebView2 in WinUI 3 (Windows App SDK) apps||WinUI3_GettingStarted||Use the Blank App, Packaged (WinUI in Desktop) project template, which uses the WindowsAppSDK, which includes the WebView2 SDK. Add an address bar and URL logic.|
|Get started with WebView2 in WPF apps||WPF_GettingStarted||Use the WPF Application or WPF App (.NET Framework) project template to create a WPF app, and then install the WebView2 SDK for the project to add WebView2.|
|Get started with WebView2 in WinForms apps||WinForms_GettingStarted||Use the C# Windows Forms App (.NET Framework) project template to create a WinForms project, then install the Microsoft.Web.WebView2 SDK package for the WinForms project.|
|Get started with WebView2 in Win32 apps||Win32_GettingStarted||Starts by opening an existing Win32 app project that has the WebView2 SDK and code already added.|
|Get started with WebView2 in HoloLens 2 Unity apps||Hololens2_GettingStarted||Starts by opening an existing Unity project that has the WebView2 SDK package and sample code added.|
- Microsoft Edge WebView2 - initial introduction to WebView2, at
- Sample apps - framework-specific sample apps that showcase more of the WebView2 APIs than the Getting Started tutorials.
- WebView2Samples repo - contains completed Visual Studio projects that result from following the steps in these Getting Started tutorials, as well as sample apps and deployment samples.