且构网

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

Xamarin.Forms Visual Studio 2017 项目未部署

更新时间:2023-02-27 11:42:28

经过这几天的纠结,我终于得到了我的 Xamarin.Forms Android 应用程序,可以在模拟器上显示我的页面.感谢所有成员的建议.Ryan 的建议很有帮助(我给他 +1,感谢 Ryan)但没有解决我的问题.我进一步搜索并找到了一个建议,该建议要求更改以下设置,最终为我做到了.所以,如果其他人像我一样卡住了,请执行以下操作(除了清理和更新所有包):

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 虚拟机的设置(当虚拟机关闭时).
  • 展开左侧的处理器节点,然后单击兼容性".
  • 现在勾选右侧的迁移到具有不同处理器版本的物理计算机".
  • 在 Visual Studio 模拟器工具中启动模拟器.
  • 现在,使用已经运行的同一个模拟器在 VS 中开始调试您的 android 项目.
  • 经过一段延迟(总会有一段延迟),您的应用将显示在模拟器上.耶!!