我的HTC Surround是越狱的DFT 7713版本,所以部署到真机上比较简单 ,如果你的WindowsPhone没有越狱, 具体的流程可以参照这篇帖子,地址如下:http://www.wpxap.com/thread-5359-1-1.html 。
VisualStudio2010连接Windows phone 7
完成解锁后,就可以将wp7连接至电脑了,我们打开vs2010,打开一个最简单的Helloword项目,选择windows phone 7 device,开始Debug,出现下面的错误提示,这是因为没有启动Zune:
启动Zune,开始部署程序:
------ Build started: Project: HelloPhone, Configuration: Release Any CPU ------
HelloPhone -> C:\Users\geffzhang\Documents\Visual Studio 2010\Projects\WinPhone7\HelloPhone\HelloPhone\Bin\Release\HelloPhone.dll
Begin application manifest generation
No changes detected. Application manifest file is up to date
Begin Xap packaging
No changes detected. Xap package is up to date
------ Deploy started: Project: HelloPhone, Configuration: Release Any CPU ------
Deploying C:\Users\geffzhang\Documents\Visual Studio 2010\Projects\WinPhone7\HelloPhone\HelloPhone\Bin\Release\HelloPhone.xap...
Connecting to Windows Phone Device...
Installing the application...
Updating information related to installed files...
Deployment of C:\Users\geffzhang\Documents\Visual Studio 2010\Projects\WinPhone7\HelloPhone\HelloPhone\Bin\Release\HelloPhone.xap succeeded.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
程序成功部署了,但是Debug的时候又爆出下面的错误:
越狱的机器难道还需要去注册个开发账号才行吗?怎么搞,兄弟们支个招。