Set up your HoloLens to use the Windows Device Portal


Before accessing the Windows Device Portal, you need to set it up on HoloLens:
1. Put on your HoloLens device and turn on the power.
2. Do the bloom gesture to open the Start menu.
3. Go into Settings
4. Select the Update & Security menu item.
5. Select the For developers menu item.
6. Turn on Developer Mode.
7. Scroll down and turn on Enable Device Portal.


Using the Windows Device Portal - Mixed Reality | Microsoft Docs


Connect with Wi-Fi

  1. Connect your HoloLens to Wi-Fi.
  2. Look up your device’s IP address. – To find the IP address on the device, go to Settings > Network & Internet > Wi-Fi > Advanced Options. The IP address is the set of numbers given for IPv4 Address. It will be something like
  3. From a web browser on your PC, go to https://<YOUR_HOLOLENS_IP_ADDRESS>

You will receive a warning that Your connection isn’t private


Ignore it and hit the Advanced button


You’ll receive more warnings, ignore them and hit the continue to (unsafe) link



You’ll be prompted to sign in. Use the Username (email) and password you signed into the device with, and then press the blue sign in button.



This will now load the Windows Device Portal to your Hololens.



Click on Views and Apps to load the app page.



Then click on the Choose File button to select your app to install



Navigate to where you have saved the Visual Studio Master Folder, select the YourAppNameMaster.apx file and hit open



It will start to upload to the Hololens



It will display  the message Package Successfully Registered when complete. Hit the Done button.



The App is now installed and ready to play on the Hololens 2. On  the Hololens Headset go into apps and select your app to load it.





NowSo I needed to create a Hololens 2 App and deploy it to an actual Hololens 2 that I had with me for development, AND I needed to save a copy of the compiled app that could be copied onto a Hololens 2 that my client had in another office. It was a very convoluted process so I thought I would document it now so I wouldn’t forget it for next time round.


Before you start make sure you have the following

Unity 2019.4.4f1 

MRTK 2.4.0 

Visual Studio 2019


The Best Tutorial on Set Up

I could go through and tell you how to create a Unity file that will run on the Hololens2, but really, just follow this one that Microsoft put out. It is the best.

Just go through that page and you have set up your basic Unity MRTK file that compiles to the Hololens 2 through Visual Studio.



This is where is gets fiddly and you need to set up certificates and stuff. So…. let’s get started


In Unity, open your Player Settings File > Build Settings > Player Settings.

In the Player Settings Window Expand the Publishing Settings

Scroll down to  the Certificate section and click the Create… button



A pop up box will appear and ask you to fill in a Publisher (I usually put in either my client name or my Sole trader name), and a password. Do this and then click Create



Now go back to Visual Studio and in the Solution Explorer window expand your app and locate the Package.appxmanifest file. Click on it to open it.



Click on the Packaging heading and then click on the Choose Certificate button



Click on the Select from file… button



Navigate to  the Project Assets folder (make sure it’s not the Builds Asset folder!) and select the WSATestCertificate.pfx file



Now remember in Unity we gave the certificate a password, you’ll need to enter that now and press OK


Now click on View Full Certificate



And click on Install Certificate


Choose the Current User radio button and click Next



Choose the Place all certificates in the following store radio button and click Browse



Choose the Trusted Root Certification Authorities and click OK



Click Next



Click Finish



You’ll get a Security Warning. Click Yes



Then you’ll get a message that the Import Was Successful. Hit OK



And click OK



Now right click on your app in the Solution Explorer Your App > Publish > Create App Package



Select Distribution Method. Choose the sideloading radio button and click Next



Make sure the radio button Yes use the current certificate is selected and click Next



Hololens2 needs ARM64 so make sure that checkbox is selected also and hit Create



Navigate to the folder in Windows Explorer that you gave as your file path to save the packages, and you can send these to your tester to save onto their Hololens 2.



I have another blog post that shows you how to copy it onto your Hololens 2 here