Cordova platform add wp7 fails - msbuild error

后端 未结 4 722
死守一世寂寞
死守一世寂寞 2020-12-19 16:57

I want to create crossplatform app powered by Cordova 3.1.0 which I\'ve installed via Node.js. I\'ve already installed Visual Studio 2012 and Windows Phone SDK 8 + updates.

4条回答
  •  别那么骄傲
    2020-12-19 17:12

    I agree with Witriol

    had same issue with PhoneGap 3.3.0 and wp8, all i had to do was comment out the version check in this file: C:\Users\Lander.cordova\lib\wp\cordova\3.3.0\wp8\bin\check_reqs.js

    this was the troublemaker:

    var msversion = output.match(/Microsoft\s\(R\)\s+Build\sEngine\s[a-z]+\s4\.0\.30319/i);
    

    this one should work in non-english environments as well:

    var msversion = output.match(/.NET\sFramework\,\s\w*\s4.0.30319/i);
    

提交回复
热议问题