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.

  • 1st project: https://github.com/filmaj/phonegap-winphone
  • 2nd project: https://github.com/mrlacey/phonegap-wp7
  • Errors:

  • 1st application:
  • 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>
    
  • After inserting those fields, i got many errors on "Errors list".

  • 2nd application

  • output message:

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

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


    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.


    For the record :)

    Use the latest lib of phonegap for WP7 from:

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

    链接地址: http://www.djcxy.com/p/95974.html

    上一篇: Windows Phone 7应用程序中的Live Tile

    下一篇: PhoneGap for Windows Phone 7