- Microsoft HoloLens Developer's Guide
- Dennis Vroegop
- 237字
- 2025-04-04 18:50:03
Using the emulator
In the selector in Visual Studio, you can choose the target for the deploy and debug session:

You see the targets I have on my machine. I have several virtual machines I can deploy to, since I also have the mobile development tools installed. Your screen might be different, but you should have the Remote Machine, Device, and HoloLens Emulator options available. Remote Machine and Device connect to the actual HoloLens (through Wi-Fi and through USB respectively); the Emulator is a virtual machine that got installed when you installed the tools. This is what we use now. Select this and start a debug session by either pressing the play icon next to the selection, pressing F5, or going to Debug | Start Debugging. The project will build again and then deploy to the emulator. If it is not already running, it will start the emulator and load the OS first. Then, it will start your application. And if all goes well, you should see your guitar. Use the A, W, S, and D keys on your keyboard to move left, forward, backward, and right in the virtual world; use the arrow keys to move your virtual head around. Try to walk around your object and see what it looks like from all sides. Press F2 to go back to the Start menu in the emulator.