我尝试建立一个发布appx来进行侧面加载以响应本机窗口,但出现以下错误
Error
MSB3073
The command " cd C:\Users<user>\source\repos\appxtest\windows.. react-native bundle --platform windows --entry-file index.js --bundle-output windows/appxtest/Bundle/index.windows.bundle --assets-dest windows/appxtest/Bundle " exited with code 9009
当我启用详细构建时,“工具”>“选项”>“项目和解决方案”>“构建并运行,并将“ MsBuild项目构建输出的详细程度”更改为“诊断”
我得到此日志
7> C:\ Users \ source \ repos \ appxtest \ node_modules \ react-native-windows \ PropertySheets \ Bundle.Common.targets(13,9):错误MSB3073:命令“7> C:\ Users \ source \ repos \ appxtest \ node_modules \ react-native-windows \ PropertySheets \ Bundle.Common.targets(13,9):error MSB3073:cd C:\ Users \ naveen \ source \ repos \ appxtest \视窗..7> C:\ Users \ source \ repos \ appxtest \ node_modules \ react-native-windows \ PropertySheets \ Bundle.Common.targets(13,9):error MSB3073:react-native bundle --platform windows --entry-file index.js-捆绑输出Windows / appxtest / Bundle / index.windows.bundle-资产目标Windows / appxtest / Bundle7> C:\ Users \ source \ repos \ appxtest \ node_modules \ react-native-windows \ PropertySheets \ Bundle.Common.targets(13,9):错误MSB3073:“退出,代码为9009。
。
我能够构建成功的Debug appx。有人可以指导我如何使用React Native Windows来构建发布appx]
将react-native CLI作为全局安装
使用此命令:npm install –g react-native-cli