Build Cordova Apps using Windows 10 SDK - No Valid MSBuilD

血红的双手。 提交于 2019-12-11 18:23:07

问题


I have installed the Windows 10 SDK on my Windows 10 PC, but unfortunately I'm unable to build the cordova apps. It give error "Error: No valid MSBuild was detected for the selected target." I have google it but some are saying need to install MS Visual Studio, it really frustrating me because this MS Visual Studio is 9GB that so big in size. Is there anything that I can do with Windows 10 SDK or should I download the MS Visual Studio instead?


回答1:


Visual Studio has a number of necessary components required to build and package a UWP app for distribution. You will need to install Visual Studio.




回答2:


Make sure you are using 'Command Prompt' and not some other terminal like 'Node JS Command Prompt'

Also, there have been changes since this post that may help you.

https://cordova.apache.org/announcements/2018/02/27/cordova-windows-6.0.0.html



来源:https://stackoverflow.com/questions/37359688/build-cordova-apps-using-windows-10-sdk-no-valid-msbuild

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!