问题描述
发生了很多事情,我不知道从哪里开始.说真的,这难道不是很简单吗?
So many things happened that I don't know where to start. Seriously, shouldn't this be simpler?
这里的某人知道我该如何联系Microsoft告知这一点?甚至有人可以告诉他们这个问题吗?
Someone here knows how can I contact Microsoft to tell this? Or even, can someone tell them about this problem?
我有最后一个Windows 10桌面,也有Windows Phone 10.0.10512.1000.我安装了带有用于Universal Apps开发的工具(以及8.1)的Visual Studio 2015.我有Lumia 730.
I have the last Windows 10 desktop and also have Windows Phone 10.0.10512.1000. I installed Visual Studio 2015 with tools for Universal Apps development (and also 8.1). I have a Lumia 730.
所以我用USB电缆连接了手机.一切正常,电话被识别,我可以浏览文件夹.
So I connected my phone with my USB cable. Everything fine, the phone gets recognized and I can navigate through the folders.
然后,我启动了Visual Studio 2015,并创建了一个空白的通用应用程序.编译并尝试部署.现在这发生在我身上:Visual Studio挂起了片刻.最终,我收到一条错误消息,提示未找到该设备(DEP6200).
Then I started Visual Studio 2015 and created a blank universal app. Compiled and tried to deploy. Now this is happening to me: Visual Studio hangs for some moments. Eventually I get an error telling that the device was not found (DEP6200).
我已经尝试了数十种解决方案:
I already tried dozens of solutions:
- 我的笔记本电脑和手机上的wifi断开连接
- 重新启动IpOverUsbSvc服务
- 重新启动计算机和电话
- 在设备管理器中删除设备
- 注册和注销电话(有时可以使用)
- 以上所有情况下,手机屏幕均已解锁
- 禁用Hyper-V
- 禁用防火墙
- 其他失败的解决方案
我还尝试使用Windows Phone Developer Power Tools.当我尝试使用它时,它要求我安装一些电话工具更新包",但是当我尝试使用它时,它说该操作没有成功,并且还显示了NRE消息字符串(对象引用未设置为实例)一个对象).
I also tried to use that Windows Phone Developer Power Tools. When I try to use it, it asks me to install some "Phone Tools Update Pack", but when I try, it says that the operation didn't succeed, and also shows the NRE message string (object reference not set to an instance of an object).
我可以顺利通过手机的文件夹.我试图重新安装驱动程序...我尝试了一切.
I can go through the phone's folders without any problem. I tried to reinstall the drivers... i tried everything.
很伤心.
你们还能想到更多要检查的东西吗?
Do you guys can think of some more thing to check?
在执行所有操作之前,我测试了此应用程序:https://blogs.windows.com/buildingapps/2015/07/09/just-released-windows-10-application-deployment-tool/
I tested this app before doing all this: https://blogs.windows.com/buildingapps/2015/07/09/just-released-windows-10-application-deployment-tool/
它奏效了.如果是这样的话,是否已经可以在Visual Studio上进行Windows Phone 10部署,或者我们还要等待一些时间?
And it worked. If that's the case, is Windows Phone 10 deployment over Visual Studio working already or we have to wait some more time?
Edit2:在对应用清单进行一些更改并选择"ARM"配置后,现在我得到了:
1>Deploying to SD Card...
1>Updating the layout...
1>Copying files: Total <1 mb to layout...
1>Checking whether required frameworks are installed...
1>Framework: Microsoft.NET.CoreRuntime.1.0/ARM, app package version 1.0.23117.0 is not currently installed.
1>Framework: Microsoft.VCLibs.140.00.Debug/ARM, app package version 14.0.23019.0 is not currently installed.
1>Installing missing frameworks...
但是它只是停留在那里.它被卡住了,并且永远留在那里.至少我得到了一些信息...它的步骤与WinAppDeployCmd差不多,但是命令行应用程序成功完成了.
But it just stays there. It's stuck, and it stays there forever. At least I got some info... Its more or less the same steps that WinAppDeployCmd does, but the command line app does it successfully.
推荐答案
以某种方式解决了问题.我创建了一个全新的项目,并执行了以下操作:
Somehow the problem got solved. I created a brand new project and did this:
1-在您的手机中,尝试在手机上禁用开发人员模式. 多么意外的发展!
1 - In your phone, try disabling the developer mode on your phone. What an unexpected development!
2-禁用电话发现"功能.我不知道此配置的英文名称(因为我的电话是葡萄牙语).以防万一.
2 - Disable the "phone discovery" thingy. I don't know the name of this configuration in english (as my phone is in Portuguese). Just in case.
3-选择正确的体系结构.这很明显,对吧?就我而言,ARM.如果您尝试使用x86或x64进行部署,它应该给您一个错误.对我而言,不是.
3 - Choose the correct architecture. This is obvious, right? In my case, ARM. If you try deploying with x86 or x64, it should give you an error. For me, it didn't.
从现在开始,您应该能够以开发人员模式和非开发人员模式部署应用程序.它只是以某种方式起作用.抱歉,它可能对您不起作用.我想我很幸运.
From now on, you should be able to deploy your apps in both developer mode and non-developer mode. It just works, somehow. And it might NOT work for you, sorry. I think I got lucky.
即使重新启动后它仍然可以工作.因此,解决方案是相当固体"(在明胶非常固体的宇宙中).
It worked even after a reboot. So the solution is "pretty solid" (in an universe where gelatine is pretty solid).
这篇关于在Visual Studio上部署到Windows Phone 10失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!