Where is CorFlags.exe? (.NET Framework Tools)

Edward83 picture Edward83 · Dec 15, 2010 · Viewed 33.2k times · Source

Where can I find the CorFlags.exe tool? I made full search of my hard disk drive, but it was not found.

I have: .NET Framework 4.0, Visual C# 2010 Express, Visual C++ 2010 Express. The OS is Windows 7 Ultimate 32 bit.

Answer

user541686 picture user541686 · Dec 15, 2010

It should be part of the Windows SDK, version 6 or higher, located somewhere like...

%ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bin\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bin\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\x64\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\CorFlags.exe
%ProgramFiles%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\CorFlags.exe

If you don't see it and you have a 64-bit system, also check %ProgramFiles(x86)%.