From 56b72936ec234b5ee786ecebfae9f44a2b96110b Mon Sep 17 00:00:00 2001
From: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
Date: Fri, 21 Jun 2024 08:31:45 +0200
Subject: [PATCH] fix(windows): do not set `ReactNativeDir` unless building
from source (#2103)
---
windows/UWP/ReactTestApp.vcxproj | 2 +-
windows/UWP/ReactTestApp.vcxproj.filters | 57 ++++++++++++++++++++++++
windows/Win32/ReactApp.vcxproj | 2 +-
3 files changed, 59 insertions(+), 2 deletions(-)
diff --git a/windows/UWP/ReactTestApp.vcxproj b/windows/UWP/ReactTestApp.vcxproj
index bb3409391..15366fc73 100644
--- a/windows/UWP/ReactTestApp.vcxproj
+++ b/windows/UWP/ReactTestApp.vcxproj
@@ -23,7 +23,7 @@
$(ReactAppWinDir)\Shared
$(ReactAppWinDir)\UWP
$(MSBuildProjectDirectory)\..\..
- $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native\package.json'))\node_modules\react-native\
+ $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native\package.json'))\node_modules\react-native\
$([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\
diff --git a/windows/UWP/ReactTestApp.vcxproj.filters b/windows/UWP/ReactTestApp.vcxproj.filters
index 5b821c4e1..7fa9dd52b 100644
--- a/windows/UWP/ReactTestApp.vcxproj.filters
+++ b/windows/UWP/ReactTestApp.vcxproj.filters
@@ -31,12 +31,69 @@
+
+ Assets
+
Assets
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
Assets
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
Assets
diff --git a/windows/Win32/ReactApp.vcxproj b/windows/Win32/ReactApp.vcxproj
index 40a1102a6..0f17ea8ba 100644
--- a/windows/Win32/ReactApp.vcxproj
+++ b/windows/Win32/ReactApp.vcxproj
@@ -18,7 +18,7 @@
$(ReactAppWinDir)\Shared
$(ReactAppWinDir)\Win32
$(MSBuildProjectDirectory)\..\..
- $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native\package.json'))\node_modules\react-native\
+ $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native\package.json'))\node_modules\react-native\
$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\