Skip to content

Conversation

@tido64
Copy link
Member

@tido64 tido64 commented Feb 3, 2026

Description

Ensure react-native-windows path can be found

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

CI should pass

@github-actions github-actions bot added platform: Android This affects Android platform: iOS This affects iOS platform: macOS This affects macOS platform: Windows This affects Windows platform: visionOS labels Feb 3, 2026
@tido64 tido64 mentioned this pull request Feb 3, 2026
34 tasks
</PropertyGroup>
<PropertyGroup Label="ReactNativeWindowsProps">
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)'==''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)'==''">$([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that SolutionDir isn't a great thing to rely on, because its possible to attempt to build the project without building the solution, in which case the SolutionDir wouldnt be set. (I dont know off hand how to trigger such a build).

But if this fixes something I'm ok with it, since I think its somewhat of an edge case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, I was thinking of potential hoisting issues but that should be fine in this case because we create a copy of it in a known place. I'll revert this.

@tido64 tido64 changed the title fix(windows): ensure react-native-windows path can be found ci: disable npm cache to ensure build consistency Feb 3, 2026
@tido64 tido64 enabled auto-merge (squash) February 3, 2026 16:09
@tido64 tido64 merged commit 705b701 into trunk Feb 3, 2026
30 checks passed
@tido64 tido64 deleted the tido/windows-build-fixes branch February 3, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Android This affects Android platform: iOS This affects iOS platform: macOS This affects macOS platform: visionOS platform: Windows This affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants