MicrosoftEdge / WebView2Samples

Microsoft Edge WebView2 samples
830 stars 460 forks source link

How To Build WebView2WpfBrowser #243

Open bobknowscode opened 1 month ago

bobknowscode commented 1 month ago

I have cloned the https://github.com/MicrosoftEdge/WebView2Samples.git repo. I would like to build the solution but I see that many of the projects including the WebView2WpfBrowser is skipped. I believe it is due to a configuration on the project and that configuration is not selectable through the Visual Studio 2022 dropdown.

image The only available configuration options are Release and Debug. There are no options to select Debug Stable APIs or Release Stable APIs etc image

The question / issue I have is how to modify the configurations for these projects to either use the Release/Debug standard configurations or how to add the Debug/Release Stable APIs configurations to the solution configuration dropdown.

oggy22 commented 4 weeks ago

For these two projects you should open them separately in their own solution files. What is specific about them is that they have two versions Debug/Release Stable APIs and Debug/Release Experimental APIs where the second one is supposed to be used with the latest -prerelease package.