CorFlags.exe (CorFlags Conversion Tool)
The CorFlags Conversion tool allows you to configure the CorFlags section of the header of a portable executable image.
This tool is automatically installed with Visual Studio and with the Windows SDK. To run the tool, we recommend that you use the Visual Studio Command Prompt or the Windows SDK Command Prompt (CMD Shell). These utilities enable you to run the tool easily, without navigating to the installation folder. For more information, see Visual Studio and Windows SDK Command Prompts.
-
If you have Visual Studio installed on your computer: On the taskbar, click Start, click All Programs, click Visual Studio, click Visual Studio Tools, and then click Visual Studio Command Prompt.
-or-
If you have the Windows SDK installed on your computer: On the taskbar, click Start, click All Programs, click the folder for the Windows SDK, and then click Command Prompt (or CMD Shell).
-
At the command prompt, type the following:
CorFlags.exe assembly [options]
|
Required parameter |
Description |
|---|---|
|
assembly |
The name of the assembly for which to configure the CorFlags. |
|
Option |
Description |
||
|---|---|---|---|
|
/32BIT[REQ]+ |
Sets the 32BITREQUIRED flag. |
||
|
/32BIT[REQ]- |
Clears the 32BITREQUIRED flag. |
||
|
/32BITPREF+ |
Sets the 32BITPREFERRED flag. The app runs as a 32-bit process even on 64-bit platforms. Set this flag only on EXE files. If the flag is set on a DLL, the DLL fails to load in 64-bit processes, and a BadImageFormatException exception is thrown. An EXE file with this flag can be loaded into a 64-bit process. New in the .NET Framework 4.5. |
||
|
/32BITPREF- |
Clears the 32BITPREFERRED flag. New in the .NET Framework 4.5. |
||
|
/? |
Displays command syntax and options for the tool. |
||
|
/Force |
Forces an update even if the assembly is strong-named.
|
||
|
/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.
|
Important
Note