【问题标题】:I'm having trouble connecting Visual Studio 2019 to the Microsoft Hololens v2 Emulator for deployment我无法将 Visual Studio 2019 连接到 Microsoft Hololens v2 Emulator 进行部署
【发布时间】:2021-11-30 11:46:13
【问题描述】:

我正在尝试将一个简单的统一应用程序部署到 Hololens v2 模拟器。我按照一些教程根据 Hololens 构建框架构建了统一文件。 Microsoft 的教程显示在 Visual Studio 2019 中有一个选项可以将调试器连接到 hololens v2 仿真器应用程序,但在我安装的 Visual Studio 中不存在这样的选项,尽管它符合规定的要求,版本 19.2 或更高版本。我的是 19.11

My version of Visual studio is 19.11, which should meet the requirement of 19.2 or later

这里:https://docs.microsoft.com/en-us/windows/mixed-reality/develop/platform-capabilities-and-apis/using-visual-studio?tabs=hl2 它显示了一个直接针对模拟器的选项,以及一个针对远程设备的选项(如果使用物理全息透镜)。我的调试设置中没有任何选项。 What the tutorials show

What my visual studio shows

I attempted to set it up like the remote machine setup shown in the tutorial, getting the correct hololens machine name by accessing the ip address of the emulator, but to no avail, it refuses to connect

It compiles properly, but then comes up with this error when run with those settings (with the correct machine name rather than a filler like I have in the image)

有没有人知道如何解决这个问题?我已经多次更新了 Visual Studio。

【问题讨论】:

    标签: visual-studio hololens hololens-emulator


    【解决方案1】:

    请确保已为启动项目选择了正确的项目。要更改启动项目,您应该导航到 Solution Explorer,右键单击所需的项目,然后从显示的上下文相关菜单中选择 Set as StartUp Project

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-17
      • 2016-11-29
      • 2015-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-12
      相关资源
      最近更新 更多