【问题标题】:Universal Windows app, phone only?通用 Windows 应用程序,仅限手机?
【发布时间】:2016-01-18 20:22:24
【问题描述】:

这是一个奇怪的问题,我知道,但有没有办法限制 Windows 10 通用应用程序只能在 Windows 10 移动版上运行?我正在制作的应用程序在不是手机的设备上没有用处(它适用于 Microsoft Band,所以只能是手机)。

【问题讨论】:

  • 那难道不是……不是是“通用的”吗?还是我错过了什么。
  • 因此这个问题很奇怪.. 但我无法找到仅适用于 Windows 10 Mobile 的 SDK。

标签: windows mobile universal


【解决方案1】:

在您的 package.appxmanifest 的代码视图中,您可以设置您的应用应该在哪些设备系列上可用。

<Dependencies>
<TargetDeviceFamily Name="Windows.Mobile"
minVersion="10.1.0.0" maxVersionTested="10.2.0.0" /></Dependencies>

使用此条目,该应用程序仅在 Windows.Mobile 设备(手机)上运行。如果您想要或需要:在此部分中,您可以设置设备系列和最低版本的组合。示例:

<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" minVersion="10.2.0.0" maxVersionTested="10.4.0.0"/>
<TargetDeviceFamily Name="Windows.Universal" minVersion="10.0.10240.0" maxVersionTested="10.5.0.0" /> </Dependencies>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多