Skip to content

Commit ddd4b9e

Browse files
authored
Remove explicit SDK version for Windows builds (#177)
1 parent 6da6f24 commit ddd4b9e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

windows/Clipboard/Clipboard.vcxproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414
<AppContainerApplication>true</AppContainerApplication>
1515
<ApplicationType>Windows Store</ApplicationType>
1616
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
17-
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
18-
<WindowsTargetPlatformMinVersion>10.0.17763.0</WindowsTargetPlatformMinVersion>
17+
</PropertyGroup>
18+
<PropertyGroup Label="ReactNativeWindowsProps">
19+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
20+
</PropertyGroup>
21+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props')" />
22+
<PropertyGroup Label="Fallback Windows SDK Versions">
23+
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
24+
<WindowsTargetPlatformMinVersion Condition=" '$(WindowsTargetPlatformMinVersion)' == '' ">10.0.17763.0</WindowsTargetPlatformMinVersion>
1925
</PropertyGroup>
2026
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2127
<ItemGroup Label="ProjectConfigurations">
@@ -69,9 +75,6 @@
6975
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
7076
<ImportGroup Label="ExtensionSettings">
7177
</ImportGroup>
72-
<PropertyGroup>
73-
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
74-
</PropertyGroup>
7578
<ImportGroup Label="Shared">
7679
<Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems" Label="Shared" />
7780
</ImportGroup>

0 commit comments

Comments
 (0)