Skip to content

Commit c8898ef

Browse files
authored
USE_WEBVIEW2_EXPERIMENTAL in WPF sample app (#181)
* Update WebView2WpfBrowser.csproj * Debug/Release Stable/Experimental APIs
1 parent 257250a commit c8898ef

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

SampleApps/WebView2WpfBrowser/WebView2WpfBrowser.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
<Product>WebView2 WPF Sample Browser App</Product>
99
<Copyright>Copyright ©2020</Copyright>
1010
<NoWin32Manifest>true</NoWin32Manifest>
11-
<Configurations>Debug;Release</Configurations>
11+
<Configurations>Debug Stable APIs;Release Stable APIs;Debug Experimental APIs;Release Experimental APIs</Configurations>
12+
</PropertyGroup>
13+
<PropertyGroup Condition="'$(Configuration)'=='Debug Experimental APIs'">
14+
<DefineConstants>USE_WEBVIEW2_EXPERIMENTAL</DefineConstants>
15+
</PropertyGroup>
16+
<PropertyGroup Condition="'$(Configuration)'=='Release Experimental APIs'">
17+
<DefineConstants>USE_WEBVIEW2_EXPERIMENTAL</DefineConstants>
1218
</PropertyGroup>
1319
<PropertyGroup Condition="'$(Platform)'=='x64'">
1420
<PlatformTarget>x64</PlatformTarget>
@@ -58,4 +64,4 @@
5864
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1829-prerelease" />
5965
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
6066
</ItemGroup>
61-
</Project>
67+
</Project>

SampleApps/WebView2WpfBrowser/WebView2WpfBrowser.sln

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebView2WpfBrowser", "WebVi
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
10+
Debug Experimental APIs|Any CPU = Debug Experimental APIs|Any CPU
11+
Debug Stable APIs|Any CPU = Debug Stable APIs|Any CPU
12+
Release Experimental APIs|Any CPU = Release Experimental APIs|Any CPU
13+
Release Stable APIs|Any CPU = Release Stable APIs|Any CPU
1214
EndGlobalSection
1315
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Release|Any CPU.Build.0 = Release|Any CPU
16+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Debug Experimental APIs|Any CPU.ActiveCfg = Debug Experimental APIs|Any CPU
17+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Debug Experimental APIs|Any CPU.Build.0 = Debug Experimental APIs|Any CPU
18+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Debug Stable APIs|Any CPU.ActiveCfg = Debug Stable APIs|Any CPU
19+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Debug Stable APIs|Any CPU.Build.0 = Debug Stable APIs|Any CPU
20+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Release Experimental APIs|Any CPU.ActiveCfg = Release Experimental APIs|Any CPU
21+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Release Experimental APIs|Any CPU.Build.0 = Release Experimental APIs|Any CPU
22+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Release Stable APIs|Any CPU.ActiveCfg = Release Stable APIs|Any CPU
23+
{EE405166-276B-486B-A7C6-D3E5BE2BBB6C}.Release Stable APIs|Any CPU.Build.0 = Release Stable APIs|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)