Xamarin 表单:将 windows 应用程序提交到 windows 商店时报告的问题

Xamarin forms: Issue reported while submitting windows app to windows store

我开发了一个 Xamarin Forms(.Net 标准)UWP 应用程序 并将其提交给 windows 商店,但 windows 商店团队拒绝了应用因为以下问题。

The app doesn’t install on one or more of the currently selected device families due to an unsupported minimum OS version. If the affected device family is not intended to be targeted, then please de-select the unsupported device family and resubmit the app. Otherwise, please change the minimum and/or target OS version that the app supports (https://docs.microsoft.com/en-us/windows/uwp/updates-and-versions/choose-a-uwp-version#choose-which-version-to-use-for-your-app)

我的应用 mintarget 版本是 Windows 10 Fall Creators Update(10.0; Build 16299)。我的应用程序仅针对 windows 10 台桌面设备和 windows 10 台移动设备。 那么我的应用程序的正确最低版本和目标版本是多少?

致马丁·齐克蒙德:

如果我将目标版本降级到 15063(创意者更新),我的 windows 应用构建失败并出现以下错误。

此错误的解决方案是将目标版本更改为 Windows 10 Fall Creators Update(10.0; Build 16299),我找到了 。如果我将最低版本和目标版本更改为 Windows 10 Fall Creators Update,构建将会成功。

您可能正在尝试 traget Windows 10 Mobile没有收到 16299(秋季创作者更新)和卡在子 FCU 版本上。要支持它,您必须降级到 15063(创意者更新),但这意味着您不能再使用针对 [=14= 的最新版本 Xamarin.Forms .NET Standard 2.0 在 15063 上不受支持,必须降级到 Xamarin.Forms 的版本 2.X。您还必须将您的库从 .NET Standard 2.0 降级为可移植 Class 库。

实际上,这意味着要能够使用最新最好的 Xamarin.Forms,您可能不得不放弃对移动设备的支持,而只针对其他 SKU。从数字来看,现在这可能是个好主意,因为大多数用户都在 Windows 10 桌面,无论如何 iOS 和 Android。