Skip to content

fix(windows): allow specifying MSBuild properties#2497

Merged
tido64 merged 1 commit into
trunkfrom
tido/windows-sdk
Jun 23, 2025
Merged

fix(windows): allow specifying MSBuild properties#2497
tido64 merged 1 commit into
trunkfrom
tido/windows-sdk

Conversation

@tido64
Copy link
Copy Markdown
Member

@tido64 tido64 commented Jun 23, 2025

Description

Allow specifying MSBuild properties, similar to @react-native-windows/cli.

The motivation for this feature is GitHub Actions' sudden removal of a Windows SDK version required by React Native Windows, without so much as a notice or warning anywhere. This currently causes all Windows builds to fail:

Command failed with error MSBuildError: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.targets(46,5): error MSB8036: The Windows SDK version 10.0.22621.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [D:\a\react-native-test-app\react-native-test-app\example\node_modules\.generated\windows\UWP\ReactTestApp.vcxproj]

(Example build log: https://github.com/microsoft/react-native-test-app/actions/runs/15815022444/job/44572279102)

Adding this feature will allow us to specify the Windows SDK version in our GitHub Actions workflows.

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 Jun 23, 2025
@tido64 tido64 marked this pull request as ready for review June 23, 2025 12:13
@tido64 tido64 merged commit c815b8a into trunk Jun 23, 2025
30 checks passed
@tido64 tido64 deleted the tido/windows-sdk branch June 23, 2025 16:41
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.

2 participants