应用包体系结构App package architectures

应用包配置为在特定处理器体系结构上运行。App packages are configured to run on a specific processor architecture. 通过选择体系结构,你就指定了你希望应用在何种设备上运行。By selecting an architecture, you are specifying which device(s) you want your app to run on. 通用 Windows 平台 (UWP) 应用可配置为在以下体系结构上运行:Universal Windows Platform (UWP) apps can be configured to run on the following architectures:

  • x86x86
  • X64x64
  • ARMARM
  • ARM64ARM64

强烈建议你生成面向所有体系结构的应用包。It is highly recommended that you build your app package to target all architectures. 取消选择设备体系结构,也就限制了你的应用可以运行于其上的设备的数量,从而限制了可以使用你的应用的人群数量。By deselecting a device architecture, you are limiting the number of devices your app can run on, which in turn will limit the amount of people who can use your app!

Windows 10 设备和体系结构Windows 10 devices and architectures

UWP 体系结构UWP Architecture 桌面 (x86)Desktop (x86) 桌面 (x64)Desktop (x64) 桌面 (ARM)Desktop (ARM) 移动型Mobile Windows Mixed Reality 和 HoloLensWindows Mixed Reality and HoloLens XboxXbox IoT Core(与设备相关)IoT Core (Device dependent) Surface HubSurface Hub
x86x86 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
X64x64 ✔️ ✔️ ✔️ ✔️
ARMARM ✔️ ✔️ ✔️
ARM64ARM64 ✔️ ✔️ ✔️ ✔️

下面我们更详细地讨论这些体系结构。Let’s talk about these architectures in more detail.

x86x86

选择 x86 通常对于应用包是最安全的配置,因为它几乎可以在每台设备上运行。Choosing x86 is generally the safest configuration for an app package since it will run on nearly every device. 在某些设备上,使用 x86 配置的应用包无法运行,如 Xbox 或某些 IoT Core 设备。On some devices, an app package with the x86 configuration won't run, such as the Xbox or some IoT Core devices. 但是,对于 PC 来说,x86 包是最安全的选项,并且具有最广泛的设备部署范围。However, for a PC, an x86 package is the safest choice and has the largest reach for device deployment. Windows 10 设备中有很大一部分将继续运行 x86 版本的 Windows。A substantial portion of Windows 10 devices continue to run the x86 version of Windows.

X64x64

此配置为比 x86 配置使用得较少。This configuration is used less frequently than the x86 configuration. 应注意的是,此配置专为使用 64 位版本的 Windows 10 的桌面、Xbox 上的 UWP 应用和 Intel Joule 上的 Windows 10 IoT 核心版保留。It should be noted that this configuation is reserved for desktops using 64-bit versions of Windows 10, UWP apps on Xbox, and Windows 10 IoT Core on the Intel Joule.

ARM 和 ARM64ARM and ARM64

ARM 上的 Windows 10 配置包括桌面 PC、移动设备,以及一些 IoT Core 设备(Rasperry Pi 2、Raspberry Pi 3 和 DragonBoard)。The Windows 10 on ARM configuration includes desktop PCs, mobile devices, and some IoT Core devices (Rasperry Pi 2, Raspberry Pi 3, and DragonBoard). 在 ARM 桌面 PC 上的 Windows 10 是 Windows 系列的新增产品,因此,如果你是 UWP 应用开发人员,则应将 ARM 包提交到应用商店,以便在这些 PC 上提供最佳体验。Windows 10 on ARM desktop PCs are a new addition to the Windows family, so if you are UWP app developer, you should submit ARM packages to the Store for the best experience on these PCs.

备注

若要生成 UWP 应用程序以本机方式面向 ARM64 平台,你必须安装有 Visual Studio 2017 版本15.9 或更高版本。To build your UWP application to natively target the ARM64 platform, you must have Visual Studio 2017 version 15.9 or later. 有关详细信息,请参阅此博客文章For more information, see this blog post.

有关详细信息,请参阅 ARM 上的 Windows 10For more information, see Windows 10 on ARM. 查看此“构建”相关讨论,观看 ARM 上的 Windows 10演示,并详细了解它的工作原理。Check out this //Build talk to see a demo of Windows 10 on ARM and learn more about how it works.

有关 IoT 特定主题的详细信息,请参阅 使用 Visual Studio 部署应用For more information about IoT specific topics, see Deploying an App with Visual Studio.