简体   繁体   English

为x86构建的UWP应用是否可以在x64上运行?

[英]Will a UWP app built for x86 run on x64?

I'm having a problem, and found a suggestion to build for x86 only. 我遇到了问题,并且发现了仅针对x86构建的建议。 But I'm not sure, though x86 can run on x64 computers, does that mean it will run as a UWP app as well, and be offered to x64 clients? 但是我不确定,尽管x86可以在x64计算机上运行,​​这是否意味着它也可以作为UWP应用运行,并提供给x64客户端?

The docs weren't clear. 文档尚不清楚。

TL;DR: An x86 only UWP app will run on Windows x64 consumer systems, but won't run on Xbox One or older Windows ARM-based devices. TL; DR:仅x86的UWP应用将在Windows x64消费者系统上运行,但不会在Xbox One或更旧的基于Windows ARM的设备上运行。

Generally speaking modern Windows x64 desktop PCs have the "Windows-on-Windows" layer which supports running 32-bit applications as well as 64-bit native apps for improved compatibility. 一般来说,现代Windows x64台式电脑具有“ Windows-on-Windows”层,该层支持运行32位应用程序以及64位本机应用程序,以提高兼容性。 That said, there are 64-bit versions of Windows that do not support running 32-bit apps like Windows Server (it's an optional feature) or Xbox One (which can only run x64 native apps). 也就是说,有64位版本的Windows不支持运行32位应用程序,例如Windows Server(这是一项可选功能)或Xbox One(只能运行x64本机应用程序)。 In these cases, a UWP package with only x86 would not run. 在这些情况下,只有x86的UWP软件包将无法运行。

x86 and ARM has to date mostly been relevant to Windows Mobile platforms. 迄今为止,x86和ARM大多与Windows Mobile平台有关。 There are some recently released Windows 10 on ARM devices entering the market that can run x86 or ARM, but not x64 applications. 进入市场的ARM设备最近发布了一些Windows 10,它们可以运行x86或ARM,但不能运行x64应用程序。

x64 works on most Windows desktop PCs and Xbox One. x64在大多数Windows台式机和Xbox One上均可使用。 Depending on the exact market segment you are targeting and your application type, you could go with just an x64 only architecture package--this is mostly relevant to high-end games or heavy performance applications. 根据您所针对的确切细分市场和您的应用程序类型,您可以仅使用x64架构软件包-这主要与高端游戏或高性能应用程序有关。

Ideally you would ship your UWP app for all supported architectures including x86, x64 native, and ARM assuming you are able to actually test them all. 理想情况下,假设您能够对所有受支持的体系结构进行实际测试,则可以为所有受支持的体系结构(包括x86,x64本机和ARM)交付UWP应用。

See Windows 64 , UWP on Xbox One , and DirectX and UWP on Xbox One 请参阅Windows 64Xbox One上的 UWP和Xbox One上的DirectX和UWP

an x86 build will NOT run on 1) windows rt/Windows S 2) xbox. x86版本无法在1)Windows rt / Windows S 2)xbox上运行。 3) any windows mobile variant. 3)任何Windows Mobile变体。

it will run on 1) windows for desktop either natively or under the WOW architecture. 它可以在1)本地或WOW架构的Windows窗口上运行。 both 32 and 64 bit versions. 32位和64位版本。 2) windows 10 for ARM 64 bit os (via win32 emulation layer under WOW.) any device that has this OS will work. 2)适用于ARM 64位操作系统的Windows 10(通过WOW下的win32仿真层。)具有此操作系统的任何设备都可以使用。 3) Hololens (requires x86) 4) IOT Core, depending on your device. 3)Hololens(需要x86)4)IOT Core,取决于您的设备。 5) Surface Hub (whatever that is) 5)Surface Hub(无论是什么)

By now you can also compile arm64, which only runs on windows 10 for ARM. 现在,您还可以编译仅在Windows 10 for ARM上运行的arm64。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM