在没有 Visual Studio 的情况下在 Hololens 上创建和安装应用程序

Creating and installing apps on Hololens without Visual Studio

我尝试了本教程中给出的示例,效果很好:https://developer.microsoft.com/en-us/windows/holographic/holograms_240

在我使用 Unity 构建示例后,输出是一个大小为 2.16 GB 的文件夹,它是一个 visual studio 项目(.sln 文件)。我认为输出将是单个文件(如 Android 的 apk)。

我需要的是如何从这个 Visual Studio 项目创建一个 Hololens 应用程序文件?

请参阅我的教程,其中包含有关如何构建和部署到模拟器或 HoloLens 的信息:

http://www.cameronvetter.com/2016/10/25/hololens-tutorial-unity-3d-project-creation/

具体来说,您应该遵循这些说明,(但整个教程可能对您有用):

Deploy to HoloLens

In the VS toolbar set the Solution Configuration to Release and the Solution Platform to x86. For Build Target select Remote Device. You will see this configuration screen:

If everything goes well you will see your HoloLens listed as Auto Detected. Simply select it. If not on your HoloLens say “Hey Cortana, What is my IP Address” and enter the address, leaving authentication mode set to Universal. Click Debug, Start Debugging. Your project will build and deploy to the HoloLens, you should see a Unity Logo, followed by nothing because we have not implemented anything. Press Stop in Visual Studio closing the application on your HoloLens.

Deploy to Emulator

In the VS toolbar set the Solution Configuration to Release and the Solution Platform to x86. For Build Target select HoloLens Emulator. Click Debug, Start Debugging. Your project will build and deploy to the HoloLens Emulator, you should see a Unity Logo, followed by nothing because we have not implemented anything. Press Stop in Visual Studio closing the application on the Emulator. To learn more about the emulator visit the Hololens Emulator reference.

我想这解释了你的追求。

https://msdn.microsoft.com/en-us/windows/uwp/packaging/packaging-uwp-apps

对于Unity/Hololens,您需要在不进行 C# 调试的情况下进行构建,然后在 VS 中,selectMaster 和 x86,并在创建包时禁用 ARM 和 X64。

但我无法确认这是否适用于 Hololens。