首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

判断应用程序运行在哪个版本.NET上

Posted on 2010-03-01 22:38  饭后爱  阅读(366)  评论(0编辑  收藏  举报

If you want to determine exactly which versions of the .NET Framework are installed, examine the subkeys under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP

 

The .NET Framework SDK includes a command-line utility called CLRVer.exe that shows all of the CLR versions installed on a machine.

This utility can also show which version of the CLR is being used by processes currently running on the machine by using the –all switch or passing the ID of the process you are interested in.