Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 16bc4ad

Browse files
committed
Remove explicit SDK version
See react-native-async-storage/async-storage#810 SDK import defers to app preference Keep SDK version neutral
1 parent fe72c32 commit 16bc4ad

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,10 +14,16 @@
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>
1917
</PropertyGroup>
2018
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Label="ReactNativeWindowsProps">
20+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
21+
</PropertyGroup>
22+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props')" />
23+
<PropertyGroup Label="Fallback Windows SDK Versions">
24+
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
25+
<WindowsTargetPlatformMinVersion Condition=" '$(WindowsTargetPlatformMinVersion)' == '' ">10.0.17763.0</WindowsTargetPlatformMinVersion>
26+
</PropertyGroup>
2127
<ItemGroup Label="ProjectConfigurations">
2228
<ProjectConfiguration Include="Debug|ARM">
2329
<Configuration>Debug</Configuration>
@@ -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)