According to MSDN, the clrver.exe tool will show all processes on the computer that are using the CLR if you use
clrver -all
But when I run this it doesn’t display a .Net application I’ve written. My app must be using the CLR to run, so it seems strange that it’s not in the list.
Do you know why this is happening?
This is no doubt a version problem. Type
where clrver.exeto see which one you are using, it should show you one or two, stored in the Windows SDK directory. When you get the one inBin\NETFX 4.0 Toolsthen you’ll have a version that can detect processes that run CLR version 2 as well as CLR version 4.However, when you get the one in
Bin, or only have an old version of the SDK installed (6.0 or earlier) then you’ll run a clrver.exe version that doesn’t know anything about .NET 4 and up. So you’ll only see the processes that run CLR version 2.You’ll need a version checker for clrver.exe. Bit ironic, isn’t it 😉