-
Notifications
You must be signed in to change notification settings - Fork 52
Open
microsoft/react-native-windows
#15222Labels
bugSomething isn't workingSomething isn't working
Description
I've Visual Studio 2022, Git, Node and Yarn installed. Ran ./node_modules/react-native-windows/Scripts/rnw-dependencies.ps1
from an elevated Powershell.
yarn windows
fails to build due to node_modules\@react-native-clipboard\clipboard\windows\Clipboard\Clipboard.vcxproj
failing to build.
D:\work\react-native-gallery\NewArch>yarn windows --release
MSBuild version 17.14.23+b0019275e for .NET Framework
Build started 2025-10-08 15:07:02.
Project "D:\work\react-native-gallery\NewArch\windows\NewArch.sln" on node 1 (Restore target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Release|ARM64".
D:\work\react-native-gallery\NewArch\node_modules\react-native-windows\PropertySheets\External\Microsoft.ReactNative.Common.props(46,3): warning MSB4011
: "D:\work\react-native-gallery\NewArch\node_modules\react-native-windows\PropertySheets\Generated\PackageVersion.g.props" cannot be imported again. It
was already imported at "D:\work\react-native-gallery\NewArch\node_modules\@react-native-clipboard\clipboard\windows\Clipboard\Clipboard.vcxproj (41,3)"
. This is most likely a build authoring error. This subsequent import will be ignored.
_GetAllRestoreProjectPathItems:
Determining projects to restore...
Restore:
X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
CACHE https://api.nuget.org/v3/vulnerabilities/index.json
CACHE https://api.nuget.org/v3-vulnerabilities/2025.10.08.05.30.15/vulnerability.base.json
CACHE https://api.nuget.org/v3-vulnerabilities/2025.10.08.05.30.15/2025.10.08.05.30.15/vulnerability.update.json
Done Building Project "D:\work\react-native-gallery\NewArch\windows\NewArch.sln" (Restore target(s)).
Build succeeded.
D:\work\react-native-gallery\NewArch\node_modules\react-native-windows\PropertySheets\External\Microsoft.ReactNative.Common.props(46,3): warning MSB40
11: "D:\work\react-native-gallery\NewArch\node_modules\react-native-windows\PropertySheets\Generated\PackageVersion.g.props" cannot be imported again. I
t was already imported at "D:\work\react-native-gallery\NewArch\node_modules\@react-native-clipboard\clipboard\windows\Clipboard\Clipboard.vcxproj (41,3
)". This is most likely a build authoring error. This subsequent import will be ignored.
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.96
√ Restoring NuGet packages
√ Auto-linking...
Success: No auto-linking changes necessary. (41ms)
√ Found Solution: D:\work\react-native-gallery\NewArch\windows\NewArch.sln
i Build configuration: Release
i Build platform: ARM64
× Building Solution: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsof...
× Build failed with message 3:10>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:\work\react-native-gallery\NewArch\node_modules\@react-native-clipboard\clipboard\windows\Clipboard\Clipboard.vcxproj]. Check your build configuration.
Command failed. Re-run the command with --logging for more information.
Of course, trying npx react-native run-windows --logging
shows the same error since this is a C++ project build issue.
Copilot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working