c# - 无法部署到 HoloLens 模拟器

标签 c# visual-studio-2015 win-universal-app windows-10-universal hololens

刚刚在安装了 HoloLens 模拟器的 VS2015 Update 2 中创建了默认项目 Holographic DirectX11 App (Universal Windows) 并按 F5。

HoloLens 模拟器开始加载,但在某个时候

The emulator is unable to connect to the device operating system: The emulator is unable to determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality might be disabled.

Screenshot

我可以从 Hyper-V 管理器启动模拟器并连接到它,但是屏幕没有响应鼠标点击并且停留在开始菜单(如果我从 VS2015 启动它,模拟器窗口中的图片相同,但此错误消息位于开头):

enter image description here

有什么想法吗?

最佳答案

好吧,一些“标准”清理完成了这件事:

  1. 打开Hyper-V 管理器
  2. 删除所有 Windows PhoneHoloLens 虚拟机(稍后将重新创建)
  3. 点击右侧Actions面板中的Virtual Switch Manager...链接并删除所有虚拟交换机
  4. 重启(我这样做是为了“以防万一”,可能不需要)
  5. VS2015 中打开任何 HoloLens 项目并按 F5 - 这应该会为 HoloLens 重新创建新的虚拟机并成功部署应用。

* 更新 *

这样的问题以后好像有更合适的地方了-官方Questions and Answers论坛。

* 更新 2 *

可能有关系,那我就走了this link在这里(它确实帮助我解决了过去与 Windows Phone 模拟器非常相似的问题)。

引用上面链接中的重要部分:

Here is my solution and it work well for me:

  1. open hyper-v as admin, open virtual switch manager, create a new virtual switch with "Internal", use the default name or any name you want, and save

  2. open virtual switch manager again, and you will see the "Windows Phone Emulator Internal Switch", copy the name "Windows Phone Emulator Internal Switch" and change this switch to another name(whatever you want, I just add "1" to the following string like: Windows Phone Emulator Internal Switch 1), and open your new added switch in the step 1, rename it to "Windows Phone Emulator Internal Switch" (don't change or missing any string), save

  3. open virtual switch manager again, and now you can delete the old "Windows Phone Emulator Internal Switch 1" switch

  4. open system network settings, adapter settings, you will see "vEthernet (Windows Phone Emulator Internal Switch)" is enable now, and the old one "vEthernet (New Virtual Switch)" is disabled which will not be used.

in VS, just run and deploy to a emulator, have fun.

希望这对您有所帮助。

关于c# - 无法部署到 HoloLens 模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36323562/

相关文章:

windows-phone - 如何在 UWP 中读取嵌入式资源?

c# - 通用 Windows 应用程序中的 BringToFront/SetZIndex

c# - 无法在 Visual Studio 2015 Community Edition 中打开 Windows Phone 8.1 项目

C# 对象引用和操作类型

c# - 在几秒钟之间限制按钮按下?

c# - 只有一个消费者从 RabbitMQ 上的队列接收消息

c# - Visual Studio 生成后事件返回错误 MSB3073

c++ - MSBuild配置错误WDK 8.1 Visual Studio 2015构建内核模式驱动

c# - UWP App 中的 GridViewItem IsSelected 绑定(bind)

c# - 有没有办法只返回不使用 LINQ 抛出异常的函数调用?