Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Hololens 2 Emulator not visible in Visual Studio 2019

Discussion in 'Windows Mixed Reality' started by mlainne, Nov 9, 2019.

  1. mlainne

    mlainne

    Joined:
    Nov 9, 2019
    Posts:
    1
    Hi,

    I installed a brand new machine for HoloLens 2 development.
    To validate everything I started with the Tutorial:
    https://docs.microsoft.com/fr-fr/windows/mixed-reality/mrlearning-base-ch1

    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.

    Capture01.PNG Capture02.PNG Capture03.PNG Capture04.PNG
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    563
  3. P_D_B

    P_D_B

    Microsoft Employee

    Joined:
    May 2, 2019
    Posts:
    24
    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.