CorFlags.exe (CorFlags Conversion Tool)
The CorFlags Conversion tool allows you to configure the CorFlags section of the header of a portable executable image.
The CorFlags Conversion tool is automatically installed with Visual Studio. To start the tool, use the Visual Studio Command Prompt. At the command prompt, type the following:
CorFlags.exe assembly [options]
Parameters
Argument |
Description |
---|---|
assembly |
The name of the assembly for which to configure the CorFlags. |
Option |
Description |
---|---|
/32BIT+ |
Sets the 32BIT flag. |
/32BIT- |
Clears the 32BIT flag. |
/? |
Displays command syntax and options for the tool. |
/Force |
Forces an update even if the assembly is strong-named.
Important
If you update a strong-named assembly, you must sign it again before executing its code.
|
/help |
Displays command syntax and options for the tool. |
/ILONLY+ |
Sets the ILONLY flag. |
/ILONLY- |
Clears the ILONLY flag. |
/nologo |
Suppresses the Microsoft startup banner display. |
/RevertCLRHeader |
Reverts the CLR header version to 2.0. |
/UpgradeCLRHeader |
Upgrades the CLR header version to 2.5.
Note
Assemblies must have a CLR header version of 2.5 or greater to run natively.
|
Remarks
If no options are specified, the CorFlags Conversion tool displays the flags for the specified assembly.