2013-10-01 57 views
0

我试图从命令行运行Windows Phone 8单元测试,但启动模拟器时出现问题。命令我运行是:Windows Phone单元测试无法启动模拟器

vstest.console.exe myxapfile.xap 

我检查我的系统信息,并有以下要求得到满足,

  • 64位Windows 8
  • SLAT支持
  • 4 GB RAM
  • 超支V在

我得到的错误消息是:

The Windows Phone Emulator wasn't able to ensure the virtual machine was running: 

Something happened while starting a virtual machine: 'Emulator WVGA.ttmaltiparmak' failed to  
start. (Virtual machine ID ABB534F8-56A4-4F98-B205-883F3CDC7B8A) 

The Virtual Machine Management Service failed to start the virtual machine 'Emulator 
WVGA.ttmaltiparmak' because one of the Hyper-V components is not running (Virtual 
machine ID ABB534F8-56A4-4F98-B205-883F3CDC7B8A). 

回答

-1

在BIOS中启用了VTX支持后,你可能想通过运行Coreinfo工具检查您的系统。

此外,请不要忘记在“控制面板 - >程序和功能 - >打开Windows功能” - >“Hyper-V”上启用“Hyper-V管理工具”和“Hyper-V平台”:

我在Windows 7机器上运行Windows 8 64位内部VMware播放器。也有问题从Windows Phone 8运行模拟器,并按照本指南解决它们:http://developer.nokia.com/Community/Wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator

希望它有帮助...