部署选项列变灰,没有可供部署的平台选择 - Visual Studio 2022、Hololens 1、Unity 2021

Deploy options column greyed out, and no platform choices to deploy - Visual Studio 2022, Hololens 1, Unity 2021

我在使用 VS 时遇到问题,我无法 select 一个平台来部署或设置任何部署选项。

我正在尝试通过 Visual Studio 2022 将 Unity (2021.1.16f) 构建部署到 Hololens 1。

这是我的 Unity 构建设置:

但是当我在VS中打开项目时,我无法select部署平台(启动是唯一的选择)。

并且,配置管理器菜单中的部署复选框被禁用。

我已经三重检查了与我的 Unity 场景同名的项目是否设置为启动项目,但没有帮助。

有人 运行 喜欢这个吗?

首先,对于HoloLens 1开发,推荐Unity 2019.4 LTS

But when I open the project in VS, I can't select a deploy platform (start is the only option)

请确保安装了 this doc 中列出的最匹配的 VS 版本和组件。

Note about HoloLens (1st gen) and desktop Windows Mixed Reality headsets: If you are only developing applications for desktop Windows Mixed Reality headsets or HoloLens (1st gen), you can use Visual Studio 2017 and use the Windows SDK installed by it.

对于Visual Studio中的HoloLens 1应用部署设置,一般我们会采用以下方式:

  1. 远程连接部署。

    确保开发 PC 和 HoloLens 设备在同一本地网络中,按照此文档部署您的应用程序: Remote connection

  2. 通过 USB 数据线部署应用程序。请查看 doc

  3. Deploying an app to the HoloLens (1st gen) Emulator