且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

[UWP] Universal App VS2015 Windows Phone模拟器未运行

更新时间:2023-02-27 08:19:41

你好Ziaxp,

Hi Ziaxp,

欢迎来到开发通用Windows应用程序
论坛!

作为友情提醒,请务必根据

发布指南:主题行标签

As a friendly reminder please make sure to add the appropriate tags to the title of your post as per Guide to posting: subject line tags

我已经遇到了上述错误,即使VM成功启动了VM,在我看来还有一个问题是通过为其创建的虚拟交换机,可以在虚拟交换机
部分的Hyper-V中进行管理。为了解决此问题,请按照以下步骤删除Hyper-V管理器中的虚拟交换机:

(1)关闭Visual Studio

(2)打开Hyper-V管理器

(3)删除所有Windows Phone仿真器虚拟机

(4)在Virtual Switch Manager中(链接位于右侧导航栏中)删除所有与Windows Phone相关的虚拟交换机

(5)打开Visual Studio并尝试再次部署应用程序(Visual Studio将为您创建一个新的虚拟机)

I have also met the above error, even if the VM is successfully launched by VS, in my mind there is an issue communicating with it through the virtual switch that is created for it and that can be managed in Hyper-V on the virtual switches section. In order to solve this issue please delete the virtual switch in Hyper-V manager with the following steps:
(1)Close Visual Studio
(2)Open Hyper-V Manager
(3)Delete all Windows Phone Emulator VMs
(4)In the Virtual Switch Manager (link is located in the navigation bar on the right) delete all Windows Phone related virtual switches
(5)Open Visual Studio and try to deploy the application again (Visual Studio will create a fresh virtual machine for you)

此外,请查看此文章:
对Windows Phone 8模拟器进行故障排除
,虽然它是为Windows Phone 8模拟器编写的,但我认为在对其他版本的Windows模拟器进行故障排除时,它可能也很有帮助。

Besides, please also check this article: Troubleshooting the Windows Phone 8 Emulator, though it is written for windows phone 8 emulator, I think it may be also helpful when troubleshooting an other version windows emulator.

最诚挚的问候,

Amy Peng

Best Regards,
Amy Peng