AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
In Visual Studio or GitHub Desktop, enter the URL that you copied from the GitHub repo. In GitHub Desktop, select File > Clone repository. If you want to use GitHub Desktop to clone the GitHub repo to your local drive: You've cloned the repo to your local drive. In Visual Studio, select File > Clone repository.Įnter the URL that you copied from the GitHub repo.įrom within the same dialog, or in a file explorer utility, you can create a general-purpose root git or GitHub folder in a writeable location, then select that directory, so that the repo will be cloned there, as a new directory.įor example, you could create the repo in the parent folder: C:\Users\myUserName\Documents\GitHub\, so that the cloning operation will create the new directory C:\Users\myUserName\Documents\GitHub\WebView2Samples. If you want to use Visual Studio to clone the GitHub repo to your local drive: To do that, follow the appropriate steps below, for the tool you want to use. Next, clone the GitHub repo to your local drive. Open the WebView2Samples repo in a new window or tab.Ĭlick the green Code button in the upper right of the GitHub repo, select Clone, and then click the Copy icon (or, select the HTTPS URL string in the text box and copy it).ĭecide which tool you want to use to locally clone the repo: Obtain the URL for cloning the WebView2Samples repo If you want to clone the WebView2Samples repo (instead of downloading it), and if git isn't not already installed, download git and install it.You can download the repo, as described above, or clone it. To clone the WebView2Samples repo (or the WebView2Browser repo), you must first install git. Recommended: Rename the root directory from WebView2Samples-main to WebView2Samples, to match the repo name and path. This documentation assumes that you downloaded the main branch of the repo. zip file is a snapshot of the smoketest-.27-prerelease-testing branch of the repo. It is possible to switch to a different branch at GitHub and then download, for example,. main is the name of the repo branch that this downloaded directory snapshot represents. Unzip the WebView2Samples-main.zip file and note the location of the unzipped files. It is recommended that you don't click the Open file link, because that immediately unzips the file in your Downloads area, which could make it harder (and slower) to move to your desired location.Ĭopy or cut the WebView2Samples-main.zip file from your Downloads directory to a regular directory, such as Documents. In the Downloads pop-up window, hover to the right of WebView2Samples-main.zip and then click the Show in folder (folder) icon. In Microsoft Edge, if the Download pop-up isn't visible, click Settings and more (.) and then click Downloads. The Download pop-up appears in Microsoft Edge: Open the WebView2Samples repo (or the WebView2Browser repo) in a new window or tab.Ĭlick the green Code button in the upper right of the GitHub repo, and then click Download ZIP. If you clone the repo, you can update your local copy using git commands or features of various Dev apps. You can then download another, updated copy of the repo later. zip file), you get a snapshot copy of the repo. There are two repos containing WebView2 samples: A prerelease SDK enables testing your app against the latest APIs, and trying out the latest APIs. The preview channels of Microsoft Edge are required in order to use a prerelease version of the WebView2 SDK. The minimum required version is 82.0.488.0. Install any Microsoft Edge Insider (preview) Channel (Beta, Dev, or Canary) on a supported operating system (OS):.Install a preview channel of Microsoft Edge sln file, to install the platform-appropriate workloads. Visual Studio will prompt you later, when you open a particular. If you are installing Visual Studio, you can accept the defaults for now you can click Install, and then decline installing the Workloads at this time. The WebView2 samples are designed for Microsoft Visual Studio, not Microsoft Visual Studio Code. If a sample was created using Visual Studio 2019, you should build and run the sample in Visual Studio 2019, before using the sample in Visual Studio 2022. Most of the WebView2 samples were created and tested using Visual Studio 2019. Install Visual Studio 2015 or later, such as Visual Studio Professional 2019, or Visual Studio 2022 Community edition. Some Getting Started tutorials point here for preliminary setup steps, and then add platform-specific or project-specific setup steps. This article covers general-purpose setup of your development environment for WebView2 development.
0 Comments
Read More
Leave a Reply. |