如何判断 XP 上正在运行的应用程序加载了哪个版本的 .NET CLR?
我知道计算机上有由 explorer.exe 加载的托管 shell 扩展。我想知道explorer.exe 中加载的是哪个版本的CLR。如果我运行的是 Vista 或 Win7,我可以使用 Process Explorer 并查看在 explorer.exe 属性的 .NET 程序集选项卡中。但是,这在 XP 上不起作用。有没有办法在 XP 上获取此信息?
I know that there are managed shell extensions loaded by explorer.exe on a computer. I want to know what version of the CLR is loaded into explorer.exe. If I am running Vista or Win7, I can use Process Explorer and look at the .NET Assemblies tab of the properties for explorer.exe. However, this doesn't work on XP. Is there a way to get this info on XP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Process Explorer不是也显示已加载的DLL吗?在该列表中查找
mscorwks.dll
,并查看它是从哪里加载的。 (这是工作站版本 - 我不记得服务器版本是什么,但我不认为您会在 XP 机器上看到它。首先查找以mscor
开头的任何内容近似。)Doesn't Process Explorer also show the the DLLs that have been loaded? Look for
mscorwks.dll
in that list, and see where it's being loaded from. (That's the workstation version - I can't remember what the server version is, but I don't imagine you'll see it on an XP box anyway. Look for anything beginning withmscor
as a first approximation.)如果目标计算机上安装了 Visual Studio,则可以使用
clrver
来自 Visual Studio 命令提示符可查看进程中加载了哪些版本的 CLR。例如:
这表明PID为4900的进程已加载.NET 2。
If you have Visual Studio installed on the target computer you can use
clrver
<pid>
from a Visual Studio Command Prompt to see what version(s) of the CLR are loaded in a process.For example:
This indicates that the process with PID 4900 has .NET 2 loaded.