【问题标题】:Xamarin.Forms UWP project wont install on windows 10 mobileXamarin.Forms UWP 项目不会安装在 Windows 10 移动版上
【发布时间】:2018-10-27 00:49:43
【问题描述】:

我无法在 windows phone 10 中安装 appbundle 文件

我尝试在设备上复制文件,也尝试通过 winappdeploycmd.exe 工具复制文件

但没有任何效果!

【问题讨论】:

  • 有人在我的工作上取得成功吗?
  • 经过一些研究,看起来 Xamarin-forms-samples 应用程序无法部署在 Windows 10(10.14393 版本)上。我必须等待手机升级

标签: windows-10-mobile


【解决方案1】:

如果您使用.Net Standard 2.0 and Xamarin.Forms 3.0 you can't install the app on Windows 10 Mobile,因为在 Windows 10 v1709 Build 16299 中添加了对 .Net Standard 2.0 的支持,但微软从未为手机发布该版本。他们挂在较低的feature2 branch with Build 15254

所以你有两个选择:

  • 使用 PCL 作为共享代码,与 Xamarin.Forms 2.5.1 和 Min/TargetBuild 14393/15063 一起为台式机/平板电脑和手机提供服务
  • 使用 PCL 为移动设备创建单独的分支/应用程序(Min/TargetBuild 14393/15063)和 1 个使用 .net 标准 2.0(Min/TargetBuild 16299/16299)和最新 Xamarin.Forms 版本的桌面应用程序。

【讨论】:

  • 我需要做什么才能让它在我的手机上运行。我正在按照您告诉我的内容更改版本导致 uwp 应用程序不可用
  • 您想在 1 个应用程序中同时提供服务还是拥有 2 个应用程序?最后查看我的 2 个选项
  • 我只想让应用在我的手机 14393 版本上运行
  • 好的,做第一个选项。使用 PCL library 放置所有视图和逻辑,只安装 Xamarin.Forms 2.5.1,永远不要将 Xamarin.Forms 更新到版本 3。
  • 我默认是3.0版本。我可以通过 pm 命令更改它。但是就没有像改版本这样简单的解决方案吗?我有一个 16299 版本的 Xamarin-forms-samples todo 应用程序。在我的 14393 移动版上应该如何使用示例应用部署
猜你喜欢
  • 2016-02-20
  • 2017-03-03
  • 1970-01-01
  • 1970-01-01
  • 2016-02-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-24
相关资源
最近更新 更多