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.
I had same problem and when I ran verbose on build ("phonegap -V local build wp7"), I've discovered that error was from this file:
[phonegap] Running ""C:\Users\Tom.cordova\lib\wp\cordova\3.1.0\wp7\bin\check_reqs"" (output to follow)
specifically in 78.line
var msversion = output.match(/.NET\sFramework\,\sversion\s4.0/);
which looked for English 'version', but msbuild was returning version in localized string (in this case czech word "verze" for version)
[Microsoft .NET Framework, verze 4.0.30319.34003]
so solution is to change change reg. expr. to accept any word (\w*) between characters "," and "4":
var msversion = output.match(/.NET\sFramework\,\s\w*\s4.0/);
After that phonegap builds project successfully.