Closed liudonghua123 closed 2 years ago
@JunielKatarn Is this because running msbuild raw doesn't restore the nuget packages?
See #9436.
Can you try including /t:Restore
to make sure that the boost nuget package is downloaded?
@JunielKatarn Is this because running msbuild raw doesn't restore the nuget packages?
When using MSBuild from the command line, the right way to implicitly restore dependencies (without running a separate /t:Restore
command) is:
MSBuild.exe /restore <other args...>
or MSBuild.exe /r <other args...>
for short.
@liudonghua123 you are missing the /restore
(/r
) switch.
See documentation:
https://microsoft.github.io/react-native-windows/docs/managing-cpp-deps#building-with-msbuildexe-advanced
I tried add /r
switch (msbuild "playground-win32.sln" /r /p:Configuration=Release;Platform=x86
or msbuild /r "playground-win32.sln" /p:Configuration=Release;Platform=x86
), but it failed with another error d:\code\react-native\react-native-windows\node_modules\@react-native-picker\picker\windows\ReactNativePicker\ReactNat ivePicker.vcxproj(163,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missin g file is d:\code\react-native\react-native-windows\packages\playground\windows\\packages\Microsoft.Windows.CppWinRT.2. 0.210312.4\build\native\Microsoft.Windows.CppWinRT.props.
.
I tried add
/r
switch (msbuild "playground-win32.sln" /r /p:Configuration=Release;Platform=x86
ormsbuild /r "playground-win32.sln" /p:Configuration=Release;Platform=x86
), but it failed with another errord:\code\react-native\react-native-windows\node_modules\@react-native-picker\picker\windows\ReactNativePicker\ReactNat ivePicker.vcxproj(163,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missin g file is d:\code\react-native\react-native-windows\packages\playground\windows\\packages\Microsoft.Windows.CppWinRT.2. 0.210312.4\build\native\Microsoft.Windows.CppWinRT.props.
.logs
Thanks for reporting this.
We'll look into it.
I tried add
/r
switch (msbuild "playground-win32.sln" /r /p:Configuration=Release;Platform=x86
ormsbuild /r "playground-win32.sln" /p:Configuration=Release;Platform=x86
), but it failed with another errord:\code\react-native\react-native-windows\node_modules\@react-native-picker\picker\windows\ReactNativePicker\ReactNat ivePicker.vcxproj(163,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missin g file is d:\code\react-native\react-native-windows\packages\playground\windows\\packages\Microsoft.Windows.CppWinRT.2. 0.210312.4\build\native\Microsoft.Windows.CppWinRT.props.
.logs
@liudonghua123 It seems like you have reached one of the advanced use-cases, where some projects in the solution use the PackageReference
dependency type and others use PackagesConfig
.
The documentation (same link: https://microsoft.github.io/react-native-windows/docs/managing-cpp-deps#building-with-msbuildexe-advanced) states that in those cases, you should run two separate MSBuild
commands initially to correctly restore dependencies:
MSBuild.exe /t:Restore "/p:RestoreProjectStyle=PackagesConfig;RestorePackagesConfig=true" your_solution.sln
MSBuild.exe /restore your_solution.sln
Subsequent MSBuild
calls do not need the Restore
target nor the /restore
switch to build succesffully.
Note the standard tooling for React Native Windows (yarn windows
, Visual Studio build) take these steps automatically.
@JunielKatarn Hi, thanks for the detailed explanation. However, I tried to execute the following three commands, the first one succeeded, the last two commands are failed with the same error message.
msbuild /t:Restore "/p:RestoreProjectStyle=PackagesConfig;RestorePackagesConfig=true" "playground-win32.sln"
msbuild /restore "playground-win32.sln"
msbuild /r "playground-win32.sln" /p:Configuration=Release;Platform=x86
Could you try setting the Platform=x86
property for all three MSBuild commands?
If that doesn't work, I'll look into it directly today.
Thanks, I tried the following commands without errors and Playground-win32.exe
is build successfully now. :smile:
msbuild /t:Restore "/p:RestoreProjectStyle=PackagesConfig;RestorePackagesConfig=true" "playground-win32.sln" /p:Configuration=Release;Platform=x86
msbuild /restore "playground-win32.sln" /p:Configuration=Release;Platform=x86
msbuild "playground-win32.sln" /p:Configuration=Release;Platform=x86
Thanks, I tried the following commands without errors and
Playground-win32.exe
is build successfully now. :smile:msbuild /t:Restore "/p:RestoreProjectStyle=PackagesConfig;RestorePackagesConfig=true" "playground-win32.sln" /p:Configuration=Release;Platform=x86 msbuild /restore "playground-win32.sln" /p:Configuration=Release;Platform=x86 msbuild "playground-win32.sln" /p:Configuration=Release;Platform=x86
Glad to know.
This gives us the opportunity to improve our documentation on these advanced build scenarios.
Feel free to close this issue if you think it has been resolved.
@JunielKatarn @jonthysell Thanks for your help 😄
Problem Description
I want to run
react-native-windows
as an ordinary win 32 app, I searched and findpackages\playground\windows\playground-win32.sln
. So I tried to build it. However, I gotCannot o pen include file: 'boost/preprocessor/control/expr_iif.hpp': No such file or directory
error.Steps To Reproduce
Expected Results
the commands run successfully.
CLI version
7.0.3
Environment
Target Platform Version
No response
Target Device(s)
Desktop
Visual Studio Version
No response
Build Configuration
Release
Snack, code example, screenshot, or link to a repository
logs
```shell d:\code\react-native\react-native-windows\packages\playground\windows>msbuild "playground-win32.sln" /p:Configuration=Release;Platform=x86 Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. Build started 2022/4/19 14:30:28. Project "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Release|x86". d:\code\react-native\react-native-windows\vnext\PropertySheets\JSEngine.props(4,3): warning MSB4011: "d:\code\react-native\react-native-windows \packages\playground\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "d:\code\react-native\react-nativ e-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj (3,3)". This is most likely a build authoring error. This subse quent import will be ignored. Project "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32.sln" (1) is building "d:\code\react-native\reac t-native-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj" (2) on node 1 (default targets). Project "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj" (2) is building "d:\c ode\react-native\react-native-windows\vnext\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) on node 1 (default targets). Project "d:\code\react-native\react-native-windows\vnext\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) is building "d:\code\react-na tive\react-native-windows\vnext\Common\Common.vcxproj" (4) on node 1 (default targets). GetInstalledSDKLocations: Searching for SDKs targeting "UAP, 10.0.19041.0". Searching for SDKs targeting "Windows, 8.1". ResolveSDKReferences: Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml". Targeted configuration and architecture "Retail|x86" Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Retail-x86" in the SDK manifest. Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00, MinVersion = 14.0.30704.0, Publisher = 'CN=Microsoft Corporation, O=Mi crosoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-x86=.\AppX\Retail\x86\Microsoft.VCLibs.x86.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-x64=.\AppX\Retail\x64\Microsoft.VCLibs.x64.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-ARM=.\AppX\Retail\ARM\Microsoft.VCLibs.ARM.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-ARM64=.\AppX\Retail\ARM64\Microsoft.VCLibs.ARM64.14.00.appx" in the SDK manifest. ExpandSDKReferences: Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsof t.VCLibs\14.0\". InitializeBuildStatus: Creating "d:\code\react-native\react-native-windows\vnext\build\x86\Release\Common\Common.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: All outputs are up-to-date. Lib: All outputs are up-to-date. Common.vcxproj -> d:\code\react-native\react-native-windows\vnext\target\x86\Release\Common\Common.lib ComputeProcessXamlFiles: (Out) ProcessedXamlFiles == CustomOutputGroupForPackaging: (Out) Project='Common' ProcessedXamlFiles == (Out) XamlPackagingRootFolder == d:\code\react-native\react-native-windows\vnext\build\x86\Release\Common\Generated Files\ (Out) ProcessedXamlFilesFullPath == (Out) Project='Common' CustomOutputGroupForPackagingOutput == _GenerateProjectPriFileCore: Skipping target "_GenerateProjectPriFileCore" because all output files are up-to-date with respect to the input files. FinalizeBuildStatus: Deleting file "d:\code\react-native\react-native-windows\vnext\build\x86\Release\Common\Common.tlog\unsuccessfulbuild". Touching "d:\code\react-native\react-native-windows\vnext\build\x86\Release\Common\Common.tlog\Common.lastbuildstate". Done Building Project "d:\code\react-native\react-native-windows\vnext\Common\Common.vcxproj" (default targets). Project "d:\code\react-native\react-native-windows\vnext\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) is building "d:\code\react-na tive\react-native-windows\vnext\Folly\Folly.vcxproj" (5) on node 1 (default targets). Project "d:\code\react-native\react-native-windows\vnext\Folly\Folly.vcxproj" (5) is building "d:\code\react-native\react-native-windows\vnext\ fmt\fmt.vcxproj" (6) on node 1 (default targets). GetInstalledSDKLocations: Searching for SDKs targeting "UAP, 10.0.19041.0". Searching for SDKs targeting "Windows, 8.1". ResolveSDKReferences: Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml". Targeted configuration and architecture "Retail|x86" Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Retail-x86" in the SDK manifest. Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00, MinVersion = 14.0.30704.0, Publisher = 'CN=Microsoft Corporation, O=Mi crosoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-x86=.\AppX\Retail\x86\Microsoft.VCLibs.x86.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-x64=.\AppX\Retail\x64\Microsoft.VCLibs.x64.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-ARM=.\AppX\Retail\ARM\Microsoft.VCLibs.ARM.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-ARM64=.\AppX\Retail\ARM64\Microsoft.VCLibs.ARM64.14.00.appx" in the SDK manifest. ExpandSDKReferences: Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsof t.VCLibs\14.0\". InitializeBuildStatus: Creating "d:\code\react-native\react-native-windows\vnext\build\x86\Release\fmt\fmt.tlog\unsuccessfulbuild" because "AlwaysCreate" was specif ied. ClCompile: All outputs are up-to-date. All outputs are up-to-date. Lib: All outputs are up-to-date. fmt.vcxproj -> d:\code\react-native\react-native-windows\vnext\target\x86\Release\fmt\fmt.lib ComputeProcessXamlFiles: (Out) ProcessedXamlFiles == CustomOutputGroupForPackaging: (Out) Project='fmt' ProcessedXamlFiles == (Out) XamlPackagingRootFolder == d:\code\react-native\react-native-windows\vnext\build\x86\Release\fmt\Generated Files\ (Out) ProcessedXamlFilesFullPath == (Out) Project='fmt' CustomOutputGroupForPackagingOutput == _GenerateProjectPriFileCore: Skipping target "_GenerateProjectPriFileCore" because all output files are up-to-date with respect to the input files. FinalizeBuildStatus: Deleting file "d:\code\react-native\react-native-windows\vnext\build\x86\Release\fmt\fmt.tlog\unsuccessfulbuild". Touching "d:\code\react-native\react-native-windows\vnext\build\x86\Release\fmt\fmt.tlog\fmt.lastbuildstate". Done Building Project "d:\code\react-native\react-native-windows\vnext\fmt\fmt.vcxproj" (default targets). ApplyFollyTemporaryPatch: Copying file from "d:\code\react-native\react-native-windows\vnext\Folly\TEMP_UntilFollyUpdate\portability\Unistd.cpp" to "d:\code\react-nati ve\react-native-windows\node_modules\.folly\folly-2021.06.28.00\folly\portability\Unistd.cpp". GetInstalledSDKLocations: Searching for SDKs targeting "UAP, 10.0.19041.0". Searching for SDKs targeting "Windows, 8.1". ResolveSDKReferences: Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml". Targeted configuration and architecture "Retail|x86" Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Retail-x86" in the SDK manifest. Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00, MinVersion = 14.0.30704.0, Publisher = 'CN=Microsoft Corporation, O=Mi crosoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-x86=.\AppX\Retail\x86\Microsoft.VCLibs.x86.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-x64=.\AppX\Retail\x64\Microsoft.VCLibs.x64.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-ARM=.\AppX\Retail\ARM\Microsoft.VCLibs.ARM.14.00.appx" in the SDK manifest. Found "APPX" location attribute "AppX-Retail-ARM64=.\AppX\Retail\ARM64\Microsoft.VCLibs.ARM64.14.00.appx" in the SDK manifest. ExpandSDKReferences: Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsof t.VCLibs\14.0\". InitializeBuildStatus: Touching "d:\code\react-native\react-native-windows\vnext\build\x86\Release\Folly\Folly.tlog\unsuccessfulbuild". ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\CL.exe /c /I"d:\code\react-native\rea ct-native-windows\vnext\stubs" /I"d:\code\react-native\react-native-windows\node_modules\.folly\folly-2021.06.28.00\\" /I"d:\code\react-nativ e\react-native-windows\node_modules\.fmt\fmt-7.1.3\\include" /I"d:\code\react-native\react-native-windows\vnext\Common" /I"d:\code\react-nati ve\react-native-windows\vnext\stubs" /I"d:\code\react-native\react-native-windows\vnext\include" /I"d:\code\react-native\react-native-windows \vnext\Shared" /I"d:\code\react-native\react-native-windows\vnext\include\Shared" /I"d:\code\react-native\react-native-windows\node_modules\r eact-native\ReactCommon\yoga" /I"d:\code\react-native\react-native-windows\vnext\Folly\\" /I"d:\code\react-native\react-native-windows\vnext\ build\x86\Release\Folly\Generated Files\\" /I"d:\code\react-native\react-native-windows\vnext\build\x86\Release\Folly\\" /I"d:\code\react-nat ive\react-native-windows\node_modules\.folly\folly-2021.06.28.00\\" /I"d:\code\react-native\react-native-windows\node_modules\.fmt\fmt-7.1.3\ include" /I"d:\code\react-native\react-native-windows\node_modules\react-native\\ReactCommon" /I"d:\code\react-native\react-native-windows\no de_modules\react-native\\ReactCommon\callinvoker" /I"d:\code\react-native\react-native-windows\node_modules\react-native\\ReactCommon\jsi" /I "d:\code\react-native\react-native-windows\node_modules\react-native\\ReactCommon\jsiexecutor" /I"d:\code\react-native\react-native-windows\n ode_modules\react-native\\ReactCommon\react\nativemodule\core" /I"d:\code\react-native\react-native-windows\node_modules\react-native\\ReactC ommon\react\nativemodule\samples" /I"d:\code\react-native\react-native-windows\node_modules\react-native\\ReactCommon\react\bridging" /I"d:\c ode\react-native\react-native-windows\node_modules\react-native\\ReactCommon\reactperflogger" /I"d:\code\react-native\react-native-windows\no de_modules\react-native\\ReactCommon\runtimeexecutor" /Zi /nologo /W4 /WX /diagnostics:column /sdl /MP /O1 /Oi /Oy- /GL /D FOLLY_NO_CONFIG /D NOMINMAX /D _CRT_SECURE_NO_WARNINGS /D WINAPI_PARTITION_APP /D FOLLY_NO_CONFIG /D NOMINMAX /D _HAS_AUTO_PTR_ETC /D RN_EXPORT= /D "__unused=[ [maybe_unused]]" /D FOLLY_MOBILE=1 /D _UNICODE /D UNICODE /D WINRT_LEAN_AND_MEAN /D _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS /D BOOST_ALL_NO_L IB=1 /D BOOST_ERROR_CODE_HEADER_ONLY /D BOOST_NO_RTTI /D BOOST_NO_TYPEID /D BOOST_SYSTEM_SOURCE /D GTEST_HAS_RTTI=0 /D USE_EDGEMODE_JSRT /D W IN32_LEAN_AND_MEAN /D NDEBUG /D USE_FABRIC /D USE_HERMES /D ENABLE_JS_SYSTRACE_TO_ETW /D WITH_FBSYSTRACE /D ENABLE_ETW_TRACING /D WINAPI_FAMI LY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /MD /GS /guard:cf /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /std:c++ 17 /Yc"pch.h" /Fp"d:\code\react-native\react-native-windows\vnext\build\x86\Release\Folly\Folly.pch" /Fo"d:\code\react-native\react-native-wi ndows\vnext\build\x86\Release\Folly\\" /Fd"d:\code\react-native\react-native-windows\vnext\target\x86\Release\Folly\Folly.pdb" /external:W4 / Gz /TP /wd4251 /wd4293 /wd4305 /wd4800 /wd4804 /wd4310 /wd4201 /wd4505 /wd4456 /wd4458 /wd4702 /wd4068 /wd4100 /wd4101 /wd4127 /wd4189 /wd429 0 /wd4309 /wd4324 /wd5205 /FIpch.h /analyze- /FC /errorReport:queue /Zc:__cplusplus /permissive- /utf-8 pch.cpp pch.cpp d:\code\react-native\react-native-windows\node_modules\.folly\folly-2021.06.28.00\folly\functional\Invoke.h(22,10): fatal error C1083: Cannot o pen include file: 'boost/preprocessor/control/expr_iif.hpp': No such file or directory [d:\code\react-native\react-native-windows\vnext\Folly\F olly.vcxproj] C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets(486,5): error MSB4181: The "Compi leXaml" task returned false but did not log an error. [d:\code\react-native\react-native-windows\vnext\Folly\Folly.vcxproj] Done Building Project "d:\code\react-native\react-native-windows\vnext\Folly\Folly.vcxproj" (default targets) -- FAILED. Done Building Project "d:\code\react-native\react-native-windows\vnext\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) - - FAILED. d:\code\react-native\react-native-windows\vnext\PropertySheets\JSEngine.props(4,3): warning MSB4011: "d:\code\react-native\react-native-windows \packages\playground\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "d:\code\react-native\react-nativ e-windows\node_modules\@react-native-picker\picker\windows\ReactNativePicker\ReactNativePicker.vcxproj (3,3)". This is most likely a build auth oring error. This subsequent import will be ignored. Done Building Project "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj" (defaul t targets) -- FAILED. Done Building Project "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32.sln" (default targets) -- FAILED. Build FAILED. d:\code\react-native\react-native-windows\vnext\PropertySheets\JSEngine.props(4,3): warning MSB4011: "d:\code\react-native\react-native-windo ws\packages\playground\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "d:\code\react-native\react-nat ive-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj (3,3)". This is most likely a build authoring error. This sub sequent import will be ignored. d:\code\react-native\react-native-windows\vnext\PropertySheets\JSEngine.props(4,3): warning MSB4011: "d:\code\react-native\react-native-windo ws\packages\playground\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "d:\code\react-native\react-nat ive-windows\node_modules\@react-native-picker\picker\windows\ReactNativePicker\ReactNativePicker.vcxproj (3,3)". This is most likely a build au thoring error. This subsequent import will be ignored. "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32.sln" (default target) (1) -> "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj" (default target) (2) -> "d:\code\react-native\react-native-windows\vnext\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default target) (3) -> "d:\code\react-native\react-native-windows\vnext\Folly\Folly.vcxproj" (default target) (5) -> (ClCompile target) -> d:\code\react-native\react-native-windows\node_modules\.folly\folly-2021.06.28.00\folly\functional\Invoke.h(22,10): fatal error C1083: Cannot open include file: 'boost/preprocessor/control/expr_iif.hpp': No such file or directory [d:\code\react-native\react-native-windows\vnext\Folly \Folly.vcxproj] "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32.sln" (default target) (1) -> "d:\code\react-native\react-native-windows\packages\playground\windows\playground-win32\Playground-Win32.vcxproj" (default target) (2) -> "d:\code\react-native\react-native-windows\vnext\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default target) (3) -> "d:\code\react-native\react-native-windows\vnext\Folly\Folly.vcxproj" (default target) (5) -> (_OnXamlPreCompileError target) -> C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets(486,5): error MSB4181: The "Com pileXaml" task returned false but did not log an error. [d:\code\react-native\react-native-windows\vnext\Folly\Folly.vcxproj] 2 Warning(s) 2 Error(s) Time Elapsed 00:00:03.16 d:\code\react-native\react-native-windows\packages\playground\windows> d:\code\react-native\react-native-windows\packages\playground\windows>msbuild "playground-win32.sln" /p:Configuration=Release;Platform=x86 d:\code\react-native\react-native-windows\packages\playground\windows>git remote -v origin git@github.com:microsoft/react-native-windows.git (fetch) origin git@github.com:microsoft/react-native-windows.git (push) d:\code\react-native\react-native-windows\packages\playground\windows>npx react-native --version 7.0.3 d:\code\react-native\react-native-windows\packages\playground\windows>npx react-native info info Fetching system and libraries information... System: OS: Windows 10 10.0.22000 CPU: (8) x64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz Memory: 3.32 GB / 15.92 GB Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.7.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 7, 8, 9 Build Tools: 22.0.1, 23.0.1, 25.0.1, 25.0.2, 25.0.3, 26.0.2, 27.0.0, 27.0.1, 28.0.2, 28.0.3, 29.0.2, 30.0.0, 30.0.2, 31.0.0, 31.0.0 System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Android TV Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom Android NDK: 21.3.6528147 Windows SDK: AllowDevelopmentWithoutDevLicense: Enabled AllowAllTrustedApps: Enabled Versions: 10.0.18362.0, 10.0.19041.0 IDEs: Android Studio: Not Found Visual Studio: 16.11.32228.343 (Visual Studio Community 2019), 17.1.32319.34 (Visual Studio Community 2022) Languages: Java: javac 17 Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 - C:\Program Files\Java\jdk-17\bin\javac.EXE npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-windows: Not Found npmGlobalPackages: *react-native*: Not Found info React Native v0.60.0 is now available (your project is running on v0.0.0-20220411-2010-f503b2120). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.60.0. info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.0.0-20220411-2010-f503b2120. info To upgrade, run "react-native upgrade". d:\code\react-native\react-native-windows\packages\playground\windows> ```