Unable to deploy to HoloLens2 on Win10 and Win11

Enrico 0 Reputation points
2025-01-28T15:51:18.9333333+00:00

Hello, I am trying to deploy a Unity3D (2019.4.38f1) app using Visual Studio 2019 (16.11.43) to my HoloLens2 (22621.1418) on both Windows 10 and Windows 11.

Unity has these packages added to the installation: Linux Build Support, Universal Windows Platform Build Support, Windows Build Support. While building the project on Unity I use the first image's settings. User's image

On Visual Studio I used the second image's modules during the installation. User's image

When I try to release on VS I use the "Release-ARM64-Device" settings and I run without debugging (CTRL+F5). After that I recieve this error: DEP 6957: Failed to connect to device using Universal Authentication.

I only tried by connecting the HoloLens2 via USB because the PC is in a place without Wifi connection.

Both devices have the Developers options on.

Thanks for your help

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
408 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ying Li - MSFT 1,300 Reputation points Microsoft Vendor
    2025-02-03T02:28:37.45+00:00

    Hello, Welcome to Microsoft Q&A,

    First, please ensure that your development environment is Visual Studio 2022, and check if the necessary workloads are installed on VS according to the following link - Install the tools - Mixed Reality | Microsoft Learn.

    If you are pairing for the first time on an unpaired computer, make sure to select the Debug or Master build configuration. Then, select "Start Without Debugging" to build and deploy. You will be prompted to enter a PIN. On your HoloLens, generate a PIN by opening the Settings app, navigating to Update > For Developers, and tapping on Pair. When the PIN is displayed on your HoloLens, enter it into Visual Studio.

    For the details of deployment, you can refer to Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Learn.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.