如何查看一个Application是32位的还是64位的?
使用process explorer查看,找到对应的进程。注册表的路径是ComputerHKEY_LOCAL_MACHINESOFTWAREWOW6432Node ? ? 使用powershell查看[reflection.assemblyname]::GetAssemblyName("${pwd}AssemblyTest.exe") | fl? ? 命令中的pwd是指当前路径 https://stackoverflow.com/questions/270531/how-to-determine-if-a-net-assembly-was-built-for-x86-or-x64 ? ? 使用visual studio自带的CorFlagsC:Program Files (x86)Microsoft Visual Studio2017Professional>cd "C:UsersclusourcereposEdenredTestAssemblyTestbinDebug" C:UsersclusourcereposEdenredTestAssemblyTestbinDebug>corflags AssemblyTest.exe Version : v4.0.30319 ? https://stackoverflow.com/questions/18608785/how-to-interpret-the-corflags-flags Microsoft .NET 4.5 introduced a new option,Any CPU 32-bit Preferred. In the new version of CorFlags.exe,the 32BIT flag no longer exists,instead,two new flags were added,32BITREQ and 32BITPREF. Somewhere based on the below explanation,we can interpret new CorFlags as follows. CPU Architecture PE 32BITREQ 32BITPREF ------------------------ ----- -------- --------- x86 (32-bit) PE32 1 0 x64 (64-bit) PE32+ 0 0 Any CPU PE32 0 0 Any CPU 32-Bit Preferred PE32 0 1 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |