且构网

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

Xamarin.Forms Visual Studio 2017项目未部署

更新时间:2023-02-27 13:20:17

过去几天拉了我的头发,我终于有了Xamarin.Forms Android应用程序,可以在模拟器上显示我的页面.感谢所有成员的建议.瑞安的建议大有帮助(感谢瑞安,我为他+1了),但并没有解决我的问题.我在Google上进行了进一步的搜索,发现了一条建议,要求更改以下设置,最终完成了对我的设置.因此,如果其他人像我一样陷入困境,请执行以下操作(除了清理和更新所有程序包):

After pulling my hair for the past few days, I finally got my Xamarin.Forms Android App to show my page on the emulator. Thanks to all the members for their suggestions. Ryan's suggestion helped a lot ( I +1ed him, thanks Ryan) but did not solve my problem. I googled further and found a suggestion that asked to change the following setting which did it for me finally. So, if anyone else get stuck like I did, please do the following (in addition to cleaning up and updating all packages):

  • 为您的模拟器打开Hyper-V虚拟机的设置(在虚拟机关闭的情况下).
  • 展开左侧的Processor节点,然后单击兼容性".
  • 现在,在右侧的迁移到具有不同处理器版本的物理计算机"上打勾.
  • 在Visual Studio模拟器工具中启动模拟器.
  • 现在,使用已在运行的同一模拟器开始在VS中调试android项目.
  • 延迟(总是存在延迟)后,您的应用程序将显示在模拟器上.是的!