windows-on-arm

How to detect we're running under the ARM64 version of Windows 10 in .NET?

风格不统一 提交于 2019-12-24 15:07:46
问题 I created a C# .NET console application that can run in Windows 10 x86, x64 and ARM64 (via emulator layer). I would like to know how to detect that the application is running in those platforms. I know how to detect x86 and x64, but how to detect that the app is running inside ARM64 ? This is a snapshot of Visual Studio running into my ARM64 System. You can see that it's detected as X86 回答1: You will be able to detect the processor architecture by using System.Runtime.InteropServices