Building for Hololens 2 - XAIA-ExtendedAugmentationInArchitecture/HandTracking GitHub Wiki

This guide provides step-by-step instructions on how to build for HoloLens 2 using Visual Studio.

Software requirements

Once you install the version you need, make sure you go to “Individuals components” in Visual studio installer and install the following items:

  • Windows 10 SDK version 10.0.19041.0 or 10.0.18362.0
  • USB Device Connectivity (required to deploy/debug to HoloLens over USB)
  • C++ (v142) Universal Windows Platform tools (required when using Unity)

Enabling Developer Mode

Start by enabling Developer Mode on your device so Visual Studio can connect to it.

Enable developer mode on HoloLens

  1. Turn on your HoloLens and put on the device.
  2. Use the start gesture to launch the main menu.
  3. Select the Settings tile to launch the app in your environment.
  4. Select the Update menu item.
  5. Select the For developers menu item.
  6. Enable Use developer features to deploy apps from Visual Studio to your HoloLens. If your device is running Windows Holographic version 21H1 or newer, also enable Device discovery.
  7. Optional: Scroll down and also enable Device Portal, which lets you connect to the Windows Device Portal.

Testing

  • Print this QR code. We recommend using the small size.

Additional Resources