From 465e969e2e41e2135dce07f3ccbd264a4f057a6e Mon Sep 17 00:00:00 2001 From: Stephen L Peters Date: Wed, 22 Sep 2021 15:37:01 -0700 Subject: [PATCH] Backport project file changes from 2.7 release. (#5946) * Set up infra to remove WebView with FeatureProps * Disable webview2. * Update intellisense files * remove not arm requirement for webview in cx test app. * revert MUXControls.sln * pull in MUXControls.sln from main * revert unchanged file Co-authored-by: Ranjesh Jaganathan <28935693+ranjeshj@users.noreply.github.com> --- dev/WebView2/WebView2.vcxitems | 1 + test/TestAppCX/MainPage.xaml.cpp | 4 ++-- test/TestAppCX/TestAppCX.vcxproj | 19 ++++++++++++++----- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/dev/WebView2/WebView2.vcxitems b/dev/WebView2/WebView2.vcxitems index 16e76e648b..86946e224b 100644 --- a/dev/WebView2/WebView2.vcxitems +++ b/dev/WebView2/WebView2.vcxitems @@ -8,6 +8,7 @@ %(AdditionalIncludeDirectories);$(MSBuildThisFileDirectory);$(XamlPublicHeadersPath);$(LiftedIXPIncludePaths) + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED diff --git a/test/TestAppCX/MainPage.xaml.cpp b/test/TestAppCX/MainPage.xaml.cpp index 715d10a040..8f4e5a6fea 100644 --- a/test/TestAppCX/MainPage.xaml.cpp +++ b/test/TestAppCX/MainPage.xaml.cpp @@ -13,7 +13,7 @@ #include "CornerRadiusTestPage.xaml.h" #include "TreeViewTestPage.xaml.h" #include "BackdropMaterialTestPage.xaml.h" -#ifndef _ARM_ +#ifdef WEBVIEW2_INCLUDED #include "WebView2TestPage.xaml.h" #endif @@ -76,7 +76,7 @@ void TestAppCX::MainPage::GoToBackdropMaterialTestPage(Platform::Object^ sender, void TestAppCX::MainPage::GoToWebView2TestPage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) { auto app = dynamic_cast(Application::Current); -#ifndef _ARM_ +#ifdef WEBVIEW2_INCLUDED app->RootFrame->Navigate(TypeName(WebView2TestPage::typeid), nullptr); #endif } diff --git a/test/TestAppCX/TestAppCX.vcxproj b/test/TestAppCX/TestAppCX.vcxproj index 9e5c0808a1..5e5a3b546c 100644 --- a/test/TestAppCX/TestAppCX.vcxproj +++ b/test/TestAppCX/TestAppCX.vcxproj @@ -4,6 +4,7 @@ + {92081f61-98bb-4105-a90f-b6d524b4f5c9} TestAppCX @@ -129,6 +130,7 @@ /bigobj %(AdditionalOptions) 4453;28204;4691 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -136,6 +138,7 @@ /bigobj %(AdditionalOptions) 4453;28204;4691 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -143,6 +146,7 @@ /bigobj %(AdditionalOptions) 4453;28204;4691 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -150,6 +154,7 @@ /bigobj %(AdditionalOptions) 4453;28204;4691 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -157,6 +162,7 @@ /bigobj %(AdditionalOptions) 4453;28204;4691 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -164,6 +170,7 @@ /bigobj %(AdditionalOptions) 4453;28204;4691 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -171,6 +178,7 @@ /bigobj %(AdditionalOptions) 4453;28204 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -178,6 +186,7 @@ /bigobj %(AdditionalOptions) 4453;28204 true + %(PreprocessorDefinitions);WEBVIEW2_INCLUDED @@ -203,7 +212,7 @@ TreeViewTestPage.xaml - + WebView2TestPage.xaml @@ -229,7 +238,7 @@ Designer - + Designer @@ -281,7 +290,7 @@ TreeViewTestPage.xaml - + WebView2TestPage.xaml @@ -292,13 +301,13 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + \ No newline at end of file