2013-10-01 53 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

希望它有幫助...