简体   繁体   中英

How to deploy Windows Phone 7 app, to Windows Phone 8 phone?

The title pretty much sums it up. I've written a Windows Phone 7 application and now I want to deploy it to a Windows Phone 8 device (HTC Windows Phone 8X). I have registered and unlocked this phone for development.

When I plug in the phone via USB and I want to deploy to it using Visual Studio 2010 it keeps on stating that a deployment error occurred as Zune wasn't started up. Windows Phone 8 phones now don't use zune though.

How can I get around this so that I can deploy the WP7 app to the phone?

如果没有Windows Phone 8 SDK,则无法部署到Windows Phone 8设备,而Windows Phone 8 SDK需要Visual Studio 2012,后者也需要Windows 8.因此,如果不进行升级,则无法执行此操作。

Hard to believe, but it's really possible. I deployed WP7.1 application to the Windows Phone 8 device (HTC 8X) from Windows7 x64 machine:

  1. Install WindowsPhone8SDK (solved on stackoverflow here , detailed instruction here , don't forget to aggree with numerous error and warnings)
  2. Register and unlock your device by PhoneReg.exe tool ("...\\Microsoft SDKs\\Windows Phone\\v8.0\\Tools\\Phone Registration\\PhoneReg.exe")
  3. Build your app in VS2010 (I haven't figured out how to deploy the app from VS, this doesn't work)
  4. Deploy the app by XapDeploy.exe tool ("...\\Microsoft SDKs\\Windows Phone\\v8.0\\Tools\\XAP Deployment\\XapDeploy.exe"). Select the "Device" and point to the directory with *.xap file (...\\AppName\\Bin\\Debug)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM