简体   繁体   English

在Visual Studio上部署到Windows Phone 10失败

[英]Deploying to Windows Phone 10 fails on Visual Studio

So many things happened that I don't know where to start. 发生了很多事情,我不知道从哪里开始。 Seriously, shouldn't this be simpler? 说真的,这不应该更简单吗?

Edit: Someone here knows how can I contact Microsoft to tell this? 编辑:有人在这里知道我怎么能联系微软告诉这个? Or even, can someone tell them about this problem? 甚至,有人可以告诉他们这个问题吗?

I have the last Windows 10 desktop and also have Windows Phone 10.0.10512.1000. 我有最新的Windows 10桌面,还有Windows Phone 10.0.10512.1000。 I installed Visual Studio 2015 with tools for Universal Apps development (and also 8.1). 我在Visual Studio 2015中安装了用于Universal Apps开发的工具(以及8.1)。 I have a Lumia 730. 我有一个Lumia 730。

So I connected my phone with my USB cable. 所以我用USB线连接了手机。 Everything fine, the phone gets recognized and I can navigate through the folders. 一切都很好,电话得到识别,我可以浏览文件夹。

Then I started Visual Studio 2015 and created a blank universal app. 然后我启动了Visual Studio 2015并创建了一个空白的通用应用程序。 Compiled and tried to deploy. 编译并尝试部署。 Now this is happening to me: Visual Studio hangs for some moments. 现在这发生在我身上:Visual Studio暂停一段时间。 Eventually I get an error telling that the device was not found (DEP6200). 最终我收到错误,告知找不到设备(DEP6200)。

I already tried dozens of solutions: 我已经尝试过几十种解决方案:

  • disconnecting from wifi in my laptop and my phone 在我的笔记本电脑和手机中断开与wifi的连接
  • restarting the IpOverUsbSvc service 重新启动IpOverUsbSvc服务
  • rebooting the computer and the phone 重新启动计算机和手机
  • deleting the devices in the Device Manager 删除设备管理器中的设备
  • Registering and Unregistering the phone (it sometimes works) 注册和取消注册手机(有时可以使用)
  • All of the above with the phone screen unlocked 以上所有电话屏幕都解锁了
  • disabling Hyper-V 禁用Hyper-V
  • disabling firewall 禁用防火墙
  • Other solutions that failed miserably 其他解决方案惨遭失败

I also tried to use that Windows Phone Developer Power Tools. 我还尝试使用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). 当我尝试使用它时,它要求我安装一些“Phone Tools Update Pack”,但是当我尝试时,它说操作没有成功,并且还显示NRE消息字符串(对象引用未设置为实例)一个对象)。

I can go through the phone's folders without any problem. 我可以毫无问题地浏览手机的文件夹。 I tried to reinstall the drivers... i tried everything. 我试图重新安装驱动程序......我尝试了一切。

It's quite sad. 这太可悲了。

Do you guys can think of some more thing to check? 你们有没有想过要检查的东西?

EDIT: I tested this app before doing all this: https://blogs.windows.com/buildingapps/2015/07/09/just-released-windows-10-application-deployment-tool/ 编辑:我在完成所有这些之前测试了这个应用程序: https//blogs.windows.com/buildingapps/2015/07/09/just-released-windows-10-application-deployment-tool/

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? 如果是这种情况,Windows Phone 10部署在Visual Studio上的工作是否已经开始,或者我们还需要等待一段时间?

Edit2: After making some changes to my app manifest and choosing "ARM" config, now I get this: 编辑2:在对我的应用清单进行一些更改并选择“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...

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. 至少我得到了一些信息......它或多或少与WinAppDeployCmd相同的步骤,但命令行应用程序成功完成。

Somehow the problem got solved. 不知何故,问题得到了解决。 I created a brand new project and did this: 我创建了一个全新的项目,并做到了这一点:

1 - In your phone, try disabling the developer mode on your phone. 1 - 在手机中,尝试禁用手机上的开发者模式。 What an unexpected development! 多么出乎意料的发展!

2 - Disable the "phone discovery" thingy. 2 - 禁用“手机发现”。 I don't know the name of this configuration in english (as my phone is in Portuguese). 我不知道这个配置的英文名称(因为我的手机是葡萄牙语)。 Just in case. 以防万一。

3 - Choose the correct architecture. 3 - 选择正确的架构。 This is obvious, right? 这很明显,对吗? In my case, ARM. 就我而言,ARM。 If you try deploying with x86 or x64, it should give you an error. 如果您尝试使用x86或x64进行部署, 则应该会出错。 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). 所以解决方案是“相当坚实”(在明胶非常坚固的宇宙中)。

I had the same problem. 我有同样的问题。 I tried the fix of the comment and went to devices manager. 我尝试了注释的修复,然后去了设备管理器。

Under USB-Devices there were three Lumia 920s listed. 在USB-Devices下,列出了三款Lumia 920。

  1. I selected the second one and clicked on uninstall. 我选择了第二个,然后点击卸载。

  2. At the end it asked me to restart the Computer. 最后它要我重新启动计算机。 I clicked on NO. 我点击了NO。

(When I uninstalled the first or third one, it didn't ask me that). (当我卸载第一个或第三个时,它没有问我这个)。 Then the error disappeared (now another common one appears (HRESULT: 0x80073CF6)) 然后错误消失(现在出现另一个常见的错误(HRESULT:0x80073CF6))

I have a Lumia 950 xl, with windows 10 installed, anniversary version. 我有一个Lumia 950 xl,安装了Windows 10,周年纪念版。 I had the same problem, and my solution was to turn on 'Device discovery' and 'Device Portal', and also keep the 'Developer mode' on. 我遇到了同样的问题,我的解决方案是打开“设备发现”和“设备门户”,并保持“开发者模式”。

I believe the only necessary option was the 'Device discovery' though! 我相信唯一必要的选择是'设备发现'!

Just in case someone still runs into this issue, I had something very similar with my Visual Studio 2015 professional update 1 but I couldn't even deploy to an emulator. 为了防止有人遇到这个问题,我的Visual Studio 2015专业更新1非常类似,但我甚至无法部署到模拟器。 The issue has gone after I upgraded to Visual Studio 2013 update 3. 我升级到Visual Studio 2013更新3后问题已经消失。

I had the same issues on Windows 10 with Visual Studio 2015. I updated the the UWP SDK to Anniversary Edition Build 14393, set the target framework to this and it worked. 我在使用Visual Studio 2015的Windows 10上遇到了同样的问题。我将UWP SDK更新为Anniversary Edition Build 14393,将目标框架设置为此并且工作正常。 I guess the incompatibility between the device version and sdk version was not allowing the device to be discovered by Visual Studio. 我猜设备版本和sdk版本之间的不兼容性不允许Visual Studio发现设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2015 Windows Phone模拟器未部署 - Visual Studio 2015 Windows Phone Emulator not deploying Visual Studio 2013 Windows Phone模拟器未部署 - Visual Studio 2013 Windows Phone Emulator not deploying 将Visual Studio中的UWP应用程序部署到Windows 10 Phone需要PIN - Deploying UWP app from Visual Studio to Windows 10 Phone requires PIN 部署Windows Phone应用程序时Visual Studio 2012崩溃 - Visual Studio 2012 Crashes while deploying windows phone application Windows Phone模拟器未在Visual Studio 2015上运行(Windows 10专业版) - Windows Phone Emulator Not Running on Visual Studio 2015 (Windows 10 pro) Windows 10上的Visual Studio 2015中的Windows Phone 7.1 - Windows Phone 7.1 in Visual Studio 2015 on Windows 10 Visual Studio 2015 RC无法在Windows 10上创建任何解决方案 - Visual Studio 2015 RC fails to create any solution on Windows 10 Visual Studio和Windows 8上的Windows Phone - Windows Phone on Visual Studio and windows 8 . 找不到Windows 10 SDK,如果构建失败,请在Visual Studio中安装Windows 10 SDK - ! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio Visual Studio 2013和Windows Phone - Visual Studio 2013 and Windows Phone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM