gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 20:04:20 28 4
gpt4 key购买 nike

刚刚在安装了 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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com