Hololens 2 Emulator not visible in Visual Studio 2019

Hi,

I installed a brand new machine for HoloLens 2 development.
To validate everything I started with the Tutorial:

So far no error during the setup and packaging. However when I try to launch it on Visual Studio, VS does not find ‘‘HoloLens 2 Emulator’’.

I also try this action - still nothing in the Start drop-down list.

  • Delete the ConfigurationCache folder in %localappdata%\Microsoft\VisualStudio<installation id>\CoreCon and try again.

Thanks for your support.

5158349--511049--Capture01.PNG

5158349--511058--Capture04.PNG

This is not a Unity issue, but a Microsoft issue. We have no interaction or coupling with the HL Emulators.

I assume you installed the HL2 Emulator from Using the HoloLens Emulator - Mixed Reality | Microsoft Learn?

Your StartUp project is a class library, indicated by your Il2Cpp project being in bold in Solution Explorer. Emulator and Device targets will not show in Visual Studio unless your StartUp project is an application. Right-click on “MixedRealityBase (Universal Windows)” and choose “Set as StartUp project”. This stems from an issue where it appears Unity writes projects into the .sln in alphabetical order instead of listing the main application project first. Visual Studio assumes the first project listed is the startup project. Please let me know if this does not address the issue.

13 Likes

This fixed the same issue for me. Thank you, P_D_B

Hi,
I have also this problem. My application is a GUI I designed in Qt (a Qwidget) and when I run it is VS it runs without problem but when I want to insert the application into hololens, the hololens emulator does not show up in the VS debug target. The emulator however can be run separately outside VS, but does not show up in debugging target. I set the project as the startup project but it did not help. Can you help me with that?