Skip to content

Commit d95c0b5

Browse files
MicrosoftNikNik Erokhine
andauthored
fix path to node_modules (#238)
Co-authored-by: Nik Erokhine <[email protected]>
1 parent 6bd5601 commit d95c0b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/windows/SliderWindows/SliderWindows.vcxproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@
7070
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
7171
<ImportGroup Label="ExtensionSettings">
7272
</ImportGroup>
73+
<PropertyGroup>
74+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
75+
</PropertyGroup>
7376
<ImportGroup Label="Shared">
74-
<Import Project="..\..\..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems" Label="Shared" />
77+
<Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems" Label="Shared" />
7578
</ImportGroup>
7679
<ImportGroup Label="PropertySheets">
7780
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
@@ -153,7 +156,7 @@
153156
</Text>
154157
</ItemGroup>
155158
<ItemGroup>
156-
<ProjectReference Include="..\..\..\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj">
159+
<ProjectReference Include="$(ReactNativeWindowsDir)\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj">
157160
<Project>{f7d32bd0-2749-483e-9a0d-1635ef7e3136}</Project>
158161
<Private>false</Private>
159162
</ProjectReference>

0 commit comments

Comments
 (0)