如何判断 XP 上正在运行的应用程序加载了哪个版本的 .NET CLR?

发布于 2024-10-06 08:34:05 字数 278 浏览 1 评论 0原文

我知道计算机上有由 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我还不会笑 2024-10-13 08:34:05

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 with mscor as a first approximation.)

深海夜未眠 2024-10-13 08:34:05

如果目标计算机上安装了 Visual Studio,则可以使用 clrver 来自 Visual Studio 命令提示符可查看进程中加载​​了哪些版本的 CLR。

例如:

C:\>clrver 4900
v2.0.50727

这表明PID为4900的进程已加载.NET 2。

C:\>clrver -h
Displays CLR versions
Usage: clrver [-?|-all|<PID>]

        -all   - Displays all processes on the machine using the CLR.
        <PID> - Displays the version of the CLR used by the specified process.
        -?    - Displays this help screen.

If called with no options, clrver will display all installed CLR versions.

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:

C:\>clrver 4900
v2.0.50727

This indicates that the process with PID 4900 has .NET 2 loaded.

C:\>clrver -h
Displays CLR versions
Usage: clrver [-?|-all|<PID>]

        -all   - Displays all processes on the machine using the CLR.
        <PID> - Displays the version of the CLR used by the specified process.
        -?    - Displays this help screen.

If called with no options, clrver will display all installed CLR versions.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文