From cfac2a015755a78b2b46f1b449075bd7061e7cda Mon Sep 17 00:00:00 2001 From: Johan Laanstra Date: Sun, 27 Oct 2019 15:13:55 -0700 Subject: [PATCH 1/2] Remove unnecessary xaml includes. --- vsix/ItemTemplates/ViewModel/ViewModel.cpp | 3 --- .../VC/Windows Universal/WindowsRuntimeComponent/pch.h | 7 ------- 2 files changed, 10 deletions(-) diff --git a/vsix/ItemTemplates/ViewModel/ViewModel.cpp b/vsix/ItemTemplates/ViewModel/ViewModel.cpp index 2b135550c..af07f03db 100644 --- a/vsix/ItemTemplates/ViewModel/ViewModel.cpp +++ b/vsix/ItemTemplates/ViewModel/ViewModel.cpp @@ -4,9 +4,6 @@ #include "$safeitemname$.g.cpp" #endif -using namespace winrt; -using namespace Windows::UI::Xaml; - namespace winrt::$rootnamespace$::implementation { int32_t $safeitemname$::MyProperty() diff --git a/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/pch.h b/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/pch.h index e3b8b981e..21199686d 100644 --- a/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/pch.h +++ b/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/pch.h @@ -2,10 +2,3 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include From 548983b91ee4ae01a79e7fc8f5d5a987f081b744 Mon Sep 17 00:00:00 2001 From: Johan Laanstra Date: Tue, 29 Oct 2019 07:46:18 -0700 Subject: [PATCH 2/2] Reduce includes. --- .../ConsoleApplication/ConsoleApplication.vcxproj | 2 +- .../WindowsApplication/WindowsApplication.vcxproj | 2 +- .../VC/Windows Universal/BlankApp/BlankApp.vcxproj | 1 + .../VC/Windows Universal/CoreApp/CoreApp.vcxproj | 1 + .../WindowsRuntimeComponent/WindowsRuntimeComponent.vcxproj | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/ConsoleApplication.vcxproj b/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/ConsoleApplication.vcxproj index 116e5d2a1..6d45da3c0 100644 --- a/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/ConsoleApplication.vcxproj +++ b/vsix/ProjectTemplates/VC/Windows Desktop/ConsoleApplication/ConsoleApplication.vcxproj @@ -63,7 +63,7 @@ Use pch.h $(IntDir)pch.pch - _CONSOLE;%(PreprocessorDefinitions) + _CONSOLE;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions) Level4 %(AdditionalOptions) /permissive- /bigobj diff --git a/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/WindowsApplication.vcxproj b/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/WindowsApplication.vcxproj index f7600143d..822bb8bb1 100644 --- a/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/WindowsApplication.vcxproj +++ b/vsix/ProjectTemplates/VC/Windows Desktop/WindowsApplication/WindowsApplication.vcxproj @@ -63,7 +63,7 @@ Use pch.h $(IntDir)pch.pch - _CONSOLE;%(PreprocessorDefinitions) + _CONSOLE;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions) Level4 %(AdditionalOptions) /permissive- /bigobj diff --git a/vsix/ProjectTemplates/VC/Windows Universal/BlankApp/BlankApp.vcxproj b/vsix/ProjectTemplates/VC/Windows Universal/BlankApp/BlankApp.vcxproj index 9e027f58d..6acd6cd60 100644 --- a/vsix/ProjectTemplates/VC/Windows Universal/BlankApp/BlankApp.vcxproj +++ b/vsix/ProjectTemplates/VC/Windows Universal/BlankApp/BlankApp.vcxproj @@ -78,6 +78,7 @@ /DWINRT_NO_MAKE_DETECTION %(AdditionalOptions) + WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions) diff --git a/vsix/ProjectTemplates/VC/Windows Universal/CoreApp/CoreApp.vcxproj b/vsix/ProjectTemplates/VC/Windows Universal/CoreApp/CoreApp.vcxproj index d8e11ed3d..c84ab6848 100644 --- a/vsix/ProjectTemplates/VC/Windows Universal/CoreApp/CoreApp.vcxproj +++ b/vsix/ProjectTemplates/VC/Windows Universal/CoreApp/CoreApp.vcxproj @@ -76,6 +76,7 @@ Level4 %(AdditionalOptions) /bigobj + WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions) false diff --git a/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/WindowsRuntimeComponent.vcxproj b/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/WindowsRuntimeComponent.vcxproj index d031d3540..162719dc3 100644 --- a/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/WindowsRuntimeComponent.vcxproj +++ b/vsix/ProjectTemplates/VC/Windows Universal/WindowsRuntimeComponent/WindowsRuntimeComponent.vcxproj @@ -82,7 +82,7 @@ /DWINRT_NO_MAKE_DETECTION %(AdditionalOptions) - _WINRT_DLL;%(PreprocessorDefinitions) + _WINRT_DLL;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions) $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)