

If Microsoft Visual Studio isn't installed already, in a new window or tab, see Install Visual Studio in Set up your Dev environment for WebView2.This tutorial requires Microsoft Visual Studio, not Microsoft Visual Studio Code. Solution file: WebView2GettingStarted.sln.The completed tutorial project is available in the WebView2Samples repo: Instead, you start with the completed project that's in the repo. This tutorial does not have you create a new project you don't use a project template in Visual Studio to create a new project. Follow the remaining steps in this article about adding and understanding the WebView2 code.Optionally delete the WebView2 code from HelloWebView.cpp to restore the Win32 baseline app.Clone or download the WebView2Samples repo to your local drive.To use this article, you do the following:

The project uses the Win32_GettingStarted (WebView2GettingStarted.sln) directory that's part of the WebView2Samples repo.

This tutorial starts by opening an existing Win32 app project that has WebView2 code added. In this article, you set up your development tools (if not done already), learn how to add WebView2 code to a Win32 app project, and learn about WebView2 concepts along the way.
