You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/get-started/win32.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -376,12 +376,12 @@ Now to do the above, in the callback, you'll:
376
376
377
377
1. In `HelloWebView.cpp`, locate the following code:
378
378
379
-
```cpp
380
-
UpdateWindow(hWnd);
381
-
382
-
// <-- WebView2 sample code starts here -->
383
-
```
384
-
379
+
```cpp
380
+
UpdateWindow(hWnd);
381
+
382
+
// <-- WebView2 sample code starts here -->
383
+
```
384
+
385
385
1. If the following code isn't already present, paste the following code into `HelloWebView.cpp`. Paste the code in between the lines `// <-- WebView2 sample code starts here -->` and `// <-- WebView2 sample code ends here -->`:
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/get-started/winui.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ This article covers how to set up your development tools and create an initial W
14
14
15
15
In this tutorial, you use the **Blank App, Packaged (WinUI in Desktop)** Visual Studio project template to create a blank WinUI 3 project. That project template uses the WindowsAppSDK, which includes the WebView2 SDK. You add a WebView2 control. You then add an address bar and logic to display a warning dialog when the user tries to navigate to a URL with an `http://` prefix.
16
16
17
+

## Step 1 - Prerequisite: Install a preview channel of Microsoft Edge
46
46
47
-
Microsoft Visual Studio is required. Microsoft Visual Studio Code is not supported for this sample. This repo sample is a Visual Studio 2019 project.
47
+
Next, make sure a preview channel of Microsoft Edge in installed, on a supported OS. Currently we recommend the latest version of the Canary channel.
48
48
49
-
1. If Visual Studio (minimum required version) is not already installed with C++ support, in a separate window or tab, see [Install Visual Studio](../how-to/machine-setup.md#install-visual-studio) in _Set up your Dev environment for WebView2_. Follow the steps in that section to install Visual Studio with C++ support, and then return to this page and continue the steps below.
49
+
1. If a preview channel of Microsoft Edge (Beta, Dev, or Canary) is not already installed, in a separate window or tab, see [Install a preview channel of Microsoft Edge](../how-to/machine-setup.md#install-a-preview-channel-of-microsoft-edge) in _Set up your Dev environment for WebView2_. Follow the steps in that section, and then return to this page and continue the steps below.
50
50
51
-
If you want to use Visual Studio 2017, after you open the solution in Visual Studio 2017, change the project's Platform Toolset in **Project Properties > Configuration properties > General > Platform Toolset**.
52
51
53
-
To use Visual Studio 2017, you might also need to install a recent Windows SDK on your machine.
## Step 2 - Install a preview channel of Microsoft Edge
57
+
1. If Visual Studio 2019 (minimum required version) is not already installed with C++ support, in a separate window or tab, see [Install Visual Studio](../how-to/machine-setup.md#install-visual-studio) in _Set up your Dev environment for WebView2_. Follow the steps in that section to install Visual Studio 2019 with C++ support, and then return to this page and continue the steps below.
58
58
59
-
Next, make sure a preview channel of Microsoft Edge in installed, on a supported OS. Currently we recommend the latest version of the Canary channel.
59
+
If you want to use Visual Studio 2017, after you open the solution in Visual Studio 2017, change the project's Platform Toolset in **Project Properties > Configuration properties > General > Platform Toolset**.
60
60
61
-
1. If a preview channel of Microsoft Edge (Beta, Dev, or Canary) is not already installed, in a separate window or tab, see [Install a preview channel of Microsoft Edge](../how-to/machine-setup.md#install-a-preview-channel-of-microsoft-edge) in _Set up your Dev environment for WebView2_. Follow the steps in that section, and then return to this page and continue the steps below.
61
+
To use Visual Studio 2017, you might also need to install a recent Windows SDK on your machine.
## Step 3 - Clone or download the WebView2Samples repo
65
+
## Step 3 - Clone the WebView2Samples repo
66
66
67
-
1. If not done already, clone or download the `WebView2Sample` repo to your local drive. In a separate window or tab, see [Download the WebView2Samples repo](../how-to/machine-setup.md#download-the-webview2samples-repo) in _Set up your Dev environment for WebView2_. Follow the steps in that section, and then return to this page and continue below.
67
+
1. If not done already, clone the `WebView2Sample` repo to your local drive. In a separate window or tab, see [Download the WebView2Samples repo](../how-to/machine-setup.md#download-the-webview2samples-repo) in _Set up your Dev environment for WebView2_. Follow the steps in that section, and then return to this page and continue below.
68
68
69
69
1. If you previously cloned the repo, pull the latest commits to your local copy of the repo.
Unlike some other samples, the `.sln` file is not in the sample repo directory that contains this sample's Readme. Instead, the `.sln` file for this sample is in the parent directory.
83
+
The **WebView2APISample** sample and project is the main Win32 sample.
84
+
85
+
Unlike some other samples, there's not a dedicated `.sln` file in the sample repo directory that contains this sample's Readme. Instead, the `.sln` file for this sample (including other sample projects as well) is in the parent directory.
86
+
87
+

0 commit comments