2017-06-16 69 views
1

在剛初始化運行react-native windows後作出反應本機應用程序,如果您立即運行react-native run-windows這個錯誤發生:運行`react-native run-windows`時如何修復生成錯誤?

Build failed with message Error: Command failed: "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "C:/<path_to_project>/windows/<project_name>.sln" /clp:NoSummary;NoItemAndProperty;Verbosity=minimal /nologo /p:Configuration=debug /p:Platform=x86 . Check your build configuration.

回答

1

會發生這種情況時,你已經安裝了Visual Studio,但從來沒有開始爲「devenv.exe的「在嘗試使用一些命令行工具之前。在命令行工具可以由react-native run-windows命令調用之前,首次啓動Visual Studio時會發生一些額外的設置。

見陣營機Windows故障排除部分以瞭解更多信息: https://github.com/Microsoft/react-native-windows/blob/master/docs/SetupTroubleshooting.md

+0

感謝這裏分享你的解決方案,你可以將其標記爲答案,因此它可以幫助其他社區成員誰得到了同樣的問題。 –

相關問題