确定程序集的框架 (CLR) 版本 [英] Determine framework (CLR) version of assembly

查看:30
本文介绍了确定程序集的框架 (CLR) 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从命令行(或通过任何方式),我如何确定哪个 CLR.NET 程序集需要的版本?

From the command line (or by any means really), how can I determine which CLR version a .NET assembly requires?

我需要确定程序集是否需要 2.0 或 4.0 CLR 版本.

I need to determine if an assembly requires 2.0 or 4.0 CLR version.

推荐答案

ildasm.exe 如果您双击MANIFEST"并查找元数据版本",则会显示它.默认情况下,它是编译映像所针对的版本.

ildasm.exe will show it if you double-click on "MANIFEST" and look for "Metadata version". By default, it's the version that the image was compiled against.

这篇关于确定程序集的框架 (CLR) 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆