Both the WindowsPhone and Hololens simulators are built on Hyper-V technology, and typically only the corresponding project is deployed through Visual Studio to start the emulator.
However, booting these VMS directly through the Windows-enabled Hyper-V Manager can only display the main interface and not interoperate due to the lack of corresponding interactive hardware
Compared to invoking the emulator in Visual Studio, a "shell" is missing from the Hyper-V-initiated emulator, and this "shell" is the core of the interaction
Here is a small tool to get the "shell" call method
Process Explorer
Of course, you can not use this tool, directly paste the following text into a WordPad and then change to. bat format double-click Run (do not require administrator rights). (The code in * * * represents the user path, can be self-complete according to the information provided in Hyper-V manager)
Start"HoloLens Emulator" "C:\Program Files (x86) \microsoft Xde\10.0.14393.0\xde.exe"/name"HoloLens Emulator 10.0.14393.0.mr_ra"/displayname"HoloLens Emulator 10.0.14393.0"/vhd"C:\Program Files (x86) \ Windows Kits\10\emulation\hololens\10.0.14393.0\flash.vhd"/video"1268x720"/memsize2048/language409/creatediffdisk"C:\Users\Mr_Ra\AppData\Local\Microsoft\XDE\10.0.14393.0\dd.1268x720.2048.vhd"/fastshutdown/sku HDE
1. First compile a project from Visual Studio and launch the corresponding emulator for the deployment
2. Wait until the emulator is starting to display the screen
3. Find XDE.exe in the Process Explorer
4. The command information has been displayed intact in the hover message, double-click XDE.exe to copy the complete command information
5. Copy to an empty text document and change the extension suffix to. bat double-click to execute the command automatically (execution does not require administrator privileges, and the code represents the user path)
Start"HoloLens Emulator" "C:\Program Files (x86) \microsoft Xde\10.0.14393.0\xde.exe"/name"HoloLens Emulator 10.0.14393.0.mr_ra"/displayname"HoloLens Emulator 10.0.14393.0"/vhd"C:\Program Files (x86) \ Windows Kits\10\emulation\hololens\10.0.14393.0\flash.vhd"/video"1268x720"/memsize2048/language409/creatediffdisk"C:\Users\Mr_Ra\AppData\Local\Microsoft\XDE\10.0.14393.0\dd.1268x720.2048.vhd"/fastshutdown/sku HDE
Note: The command before the copy command is optional, just to enable the command Line window to close after executing the command, if there is no Header command line window will not close after executing the command.
Enjoy yourself!
Separate from Visual Studio launch VS supported various emulators (WindowsPhone Emulator & Hololens Emulator)