afdesigns
afdesigns

Reputation: 77

PhoneGap for windows phone 7

I'm interested in developing applications for windows phone 7 with the PhoneGap. I know that there may not have an official version of PhoneGap for windows mobile yet, but I tried to run two projects, but got errors when implementing them.

Errors:

Warning message!

You are using a project created by previous version of Windows Phone Developer Tools CTP. Your application may not run properly.

Please edit the WMAppManifest.xml file under Properties node and insert the following elements between element as shown below.

<Capabilities>
      <Capability Name="ID_CAP_NETWORKING" />
      <Capability Name="ID_CAP_LOCATION" />
      <Capability Name="ID_CAP_SENSORS" />
      <Capability Name="ID_CAP_MICROPHONE" />
      <Capability Name="ID_CAP_MEDIALIB" />
      <Capability Name="ID_CAP_GAMERSERVICES" />
      <Capability Name="ID_CAP_PHONEDIALER" />
      <Capability Name="ID_CAP_PUSH_NOTIFICATION" />
      <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
</Capabilities>

output message:

C:\Users...\mrlacey-phonegap-wp7-1dcce5b\WP7Gap\WP7Gap\WP7Gap.csproj : error : Unable to read the project file 'WP7Gap.csproj'.

C:\Users...\mrlacey-phonegap-wp7-1dcce5b\WP7Gap\WP7Gap\WP7Gap.csproj(135,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight for Phone\v4.0\Microsoft.Silverlight.WindowsPhone71.Overrides.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Upvotes: 4

Views: 3161

Answers (2)

For the record :)

Use the latest lib of phonegap for WP7 from:

https://github.com/callback/phonegap/tree/master/lib/windows

Upvotes: 0

Matt Lacey
Matt Lacey

Reputation: 65556

You need https://github.com/phonegap/phonegap-wp7

Please note that this is still not really production ready yet though.
We're hoping that it will be there by the time Mango launches though.

Note that this is targetting the Mango beta 2 refresh. I'd assume that you're not using that.

The one you got from my site looks like a very old version. Get the latest version.

I've updated my github profile so you can contact me through there now.

Upvotes: 4

Related Questions