Skip to content

Commit 129fade

Browse files
authored
Upgrade cppwinrt solution to Visual Studio 2022 (#1187)
1 parent 380cb8f commit 129fade

File tree

4 files changed

+68
-69
lines changed

4 files changed

+68
-69
lines changed

Directory.Build.Props

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
<!-- Set common MSBuild properties and item metadata for CppWinRT tool and tests -->
44

55
<PropertyGroup>
6-
<PlatformToolset Condition="'$(PlatformToolset)'=='' and '$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
7-
<PlatformToolset Condition="'$(PlatformToolset)'=='' and '$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
8-
<PlatformToolset Condition="'$(PlatformToolset)'==''">v143</PlatformToolset>
6+
<PlatformToolset>v143</PlatformToolset>
97
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
108
<WindowsTargetPlatformMinVersion>10.0.18362.0</WindowsTargetPlatformMinVersion>
119
</PropertyGroup>
@@ -46,7 +44,7 @@
4644
<SDLCheck>true</SDLCheck>
4745
<ConformanceMode>true</ConformanceMode>
4846
<LanguageStandard Condition="'$(CppWinRTLanguageStandard)'==''">stdcpp17</LanguageStandard>
49-
<LanguageStandard Condition="'$(CppWinRTLanguageStandard)'=='latest'">stdcpplatest</LanguageStandard>
47+
<LanguageStandard Condition="'$(CppWinRTLanguageStandard)'=='20'">stdcpp20</LanguageStandard>
5048
<PrecompiledHeader>Use</PrecompiledHeader>
5149
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
5250
<PreprocessorDefinitions>CPPWINRT_VERSION_STRING="$(CppWinRTBuildVersion)";%(PreprocessorDefinitions)</PreprocessorDefinitions>

test/Directory.Build.Props

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)