From 55aedde719a1b40a1ac7b2ba9672d0fd47b35336 Mon Sep 17 00:00:00 2001 From: HO-COOH Date: Fri, 18 Sep 2026 20:58:29 +0800 Subject: [PATCH] Update all C++ project to use C++20. Enable MIDL multi-threaded compilation --- .../CppWinRT/PackagedApp/BlankApp/ProjectTemplate.vcxproj | 6 ++++-- .../SingleProjectPackagedApp/ProjectTemplate.vcxproj | 6 ++++-- .../Desktop/CppWinRT/UnitTestApp/ProjectTemplate.vcxproj | 6 ++++-- .../CppWinRT/RuntimeComponent/ProjectTemplate.vcxproj | 7 ++++--- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/PackagedApp/BlankApp/ProjectTemplate.vcxproj b/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/PackagedApp/BlankApp/ProjectTemplate.vcxproj index edd56ca8a5..e29cc7eecf 100644 --- a/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/PackagedApp/BlankApp/ProjectTemplate.vcxproj +++ b/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/PackagedApp/BlankApp/ProjectTemplate.vcxproj @@ -73,14 +73,16 @@ + + true + Use pch.h $(IntDir)pch.pch Level4 - stdcpp20 - stdcpp17 + stdcpp20 %(AdditionalOptions) /bigobj diff --git a/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/SingleProjectPackagedApp/ProjectTemplate.vcxproj b/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/SingleProjectPackagedApp/ProjectTemplate.vcxproj index 295fe353b4..0ea72bf5e5 100644 --- a/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/SingleProjectPackagedApp/ProjectTemplate.vcxproj +++ b/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/SingleProjectPackagedApp/ProjectTemplate.vcxproj @@ -74,14 +74,16 @@ + + true + Use pch.h $(IntDir)pch.pch Level4 - stdcpp20 - stdcpp17 + stdcpp20 %(AdditionalOptions) /bigobj diff --git a/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/UnitTestApp/ProjectTemplate.vcxproj b/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/UnitTestApp/ProjectTemplate.vcxproj index cd40c42c27..e2f627b3ae 100644 --- a/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/UnitTestApp/ProjectTemplate.vcxproj +++ b/dev/Templates/Source/ProjectTemplates/Desktop/CppWinRT/UnitTestApp/ProjectTemplate.vcxproj @@ -85,6 +85,9 @@ + + true + Use @@ -93,8 +96,7 @@ %(PreprocessorDefinitions);DISABLE_XAML_GENERATED_MAIN %(AdditionalIncludeDirectories);$(VCInstallDir)Auxiliary\VS\UnitTest\include\UWP Level4 - stdcpp20 - stdcpp17 + stdcpp20 %(AdditionalOptions) /bigobj diff --git a/dev/Templates/Source/ProjectTemplates/Neutral/CppWinRT/RuntimeComponent/ProjectTemplate.vcxproj b/dev/Templates/Source/ProjectTemplates/Neutral/CppWinRT/RuntimeComponent/ProjectTemplate.vcxproj index 36c254e1d4..0603db03b7 100644 --- a/dev/Templates/Source/ProjectTemplates/Neutral/CppWinRT/RuntimeComponent/ProjectTemplate.vcxproj +++ b/dev/Templates/Source/ProjectTemplates/Neutral/CppWinRT/RuntimeComponent/ProjectTemplate.vcxproj @@ -71,15 +71,16 @@ - + + true + Use pch.h $(IntDir)pch.pch Level4 - stdcpp20 - stdcpp17 + stdcpp20 %(AdditionalOptions) /bigobj _WINRT_DLL;%(PreprocessorDefinitions) $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)