
Start with a basic desktop project that contains a single main window. If Visual Studio isn't installed already, open the page Microsoft Visual Studio in a new window or tab, and install Visual Studio 2017 or later, such as Visual Studio 2022 Professional. Microsoft Visual Studio Code is not supported for this tutorial.

The sample in the repo might not be as up-to-date as a project that you create by using the latest Visual Studio project templates.


Learn about WebView2 concepts along the way.Install the 2 SDK package for the WinForms project.Use the C# Windows Forms App (.NET Framework) Visual Studio project template to create a WinForms project.
