msbuild failed in windows phone 8 phonegap CLI
我已经成功创建了适用于Android的应用。
当我要为Windows 8添加平台时,它显示如下错误
1 2 3 4 5 | $cordova platform add wp8 checking wp8 requirements... Error: Error while checking requirements: The command `msbuild` failed. Make sure you have the latest Windows Phone SDKs installed, AND have the latest .NET framework added to your path (i.e C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319). |
请帮助我...:(
在此先感谢...
我使用wp7修复了同一错误:
打开
我从
更改了
1 | var msversion = output.match(/Microsoft\\s\\(R\\)\\s+Build\\sEngine\\s[a-z]+\\s4\\.0\\.30319/i); |
到
1 | var msversion = output.match(/4\\.0\\.30319/i); |
对于该任务而言,这仍然不是一个很好的正则表达式。但是可以。
我还需要运行Visual Studio 2012 x86 Phone Tools而不是普通的cmd.exe。
顺便说一句:已报告此错误,并已为下一版本修复。
根据.NET版本,上述脚本
对于最近的.NET,以下正则表达式为我工作:
1 | /Microsoft\\s\\.NET\\sFramework,\\sVersion\\s4\\.0\\.30319/ |