Skip to content

Commit 16f692b

Browse files
committed
Directory.Build.props: set minimum Windows API version
Enforce a minimum Windows API version of build 16299 (aka '1709', aka 'Redstone 3', aka 'Fall Creators Update'). This was the previous target SDK version before 240f73e changed the native projects to use the latest Windows SDK installed. Setting the TargetPlatformMinVersion property for the native projects will prevent use of APIs newer that the specified version, with newer Windows SDKs. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent 347b73a commit 16f692b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Directory.Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
<OutDir>$(ProjectOutPath)bin\$(Platform)\$(Configuration)\</OutDir>
3535
<IntDir>$(ProjectOutPath)intermediate\$(Platform)\$(Configuration)\</IntDir>
3636
<GeneratedIncludePath>$(IntDir)include\</GeneratedIncludePath>
37+
<!--
38+
Make sure that we don't accidentally use Windows APIs only available after
39+
Windows 10 build 16299 (aka '1709', 'RS3', and 'Fall Creators Update').
40+
The minimum Windows version that includes the final design of the
41+
Projected File System (ProjFS) APIs was actually Windows 10 version 1809
42+
(build 17763), but VFS for Git also supports using the older design of the
43+
ProjFS APIs from that version.
44+
-->
45+
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
3746
</PropertyGroup>
3847

3948
</Project>

0 commit comments

Comments
 (0)