Any CPU or x64 or x86


How to learn processor achitecture of an assembly ?

Powershell:

[reflection.assemblyname]::GetAssemblyName("${pwd}\Microsoft.SharePoint.dll") | fl

https://msdn.microsoft.com/tr-tr/library/system.reflection.processorarchitecture(v=vs.110).aspx

Amd64

A 64-bit AMD processor only.

Arm

An ARM processor.

IA64

A 64-bit Intel processor only.

MSIL

Neutral with respect to processor and bits-per-word. (AnyCPU)

None

An unknown or unspecified combination of processor and bits-per-word.

X86

A 32-bit Intel processor, either native or in the Windows on Windows environment on a 64-bit platform (WOW64).

Or Corflags.exe
https://docs.microsoft.com/en-us/dotnet/framework/tools/corflags-exe-corflags-conversion-tool

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

More Information:
What does Any CPU really means ?
http://blogs.microsoft.co.il/sasha/2012/04/04/what-anycpu-really-means-as-of-net-45-and-visual-studio-11/

 

Advertisements

About bpostaci
Escalation Engineer in Microsoft.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: