Separate from Visual Studio launch VS supported various emulators (WindowsPhone Emulator & Hololens Emulator)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.