Corflags tool Tutorial


Corflags tools is used to know whether your .exe or .dll is meant to run only on a specific platform or under WOW64. This tool will be very useful if you are planning to run the application on 32 and 64 bit machines.

This tool is automatically installed with Visual Studio. Open Visual Studio Command Prompt.

Syntax:
corflags AssemblyName

Eg: Corflags.exe AssemblyName.dll

Some of the fields present in the output are:

Version : .NET Version that the binary was built with
CLR Header: 2.0 means either 1.1 or 1.1 while 2.5 means 2.0
PE &32 Bit: The platform this binary was compiled to run with:

Any CPU: PE = PE32 and 32BIT = 0
X86 : PE = PE32 and 32BIT = 1
x64: PE = PE32+ and 32BIT = 0

ILONLY: If the assembly contains unmanaged code the value is 0 else 1.
Signed: Whether this assembly was signed using a stronger key.

References:
1.http://blogs.msdn.com/b/gauravseth/archive/2006/03/07/545104.aspx


Comments

Popular posts from this blog

Appending and Prepending in Yocto - +=, =+ vs .=, =.

Connecting Serial ports of two Ubuntu VMWare Virtual Machines

Linux Commands for Hardware Info - lshw, lspci, lsdev, lscpu, lsblk, lsusb