Clrver.exe (CLR Version Tool)

The CLR Version tool (Clrver.exe) reports all the installed versions of the common language runtime (CLR) on the computer.

This tool is automatically installed with Visual Studio. To run the tool, use the Developer Command Prompt for Visual Studio (or the Visual Studio Command Prompt in Windows 7). For more information, see Command Prompts.

At the command prompt, type the following:

Syntax

clrver [option]


Options

Option Description
-all Displays all processes on the computer that are using the CLR.
pid Displays the version(s) of the CLR used by the process that has the specified process ID (PID).
-? Displays command syntax and options for the tool.

Remarks

If you call Clrver.exe with no options, it displays all installed CLR versions. If you specify a PID for another user, you must have administrative permissions to obtain the version information.

Note

Attempting to determine the CLR version for SYSTEM, LOCAL SERVICE, and NETWORK SERVICE processes results in a message indicating that the PID doesn't exist.

Examples

The following command displays all the versions of the CLR installed on the computer.

clrver

The following command displays the version of the CLR used by process 128.

clrver 128

The following command displays all the managed processes and the version of the CLR they are using.

Clrver -all