如何找到一个程序集的完全限定的名字吗? [英] How do I find the fully qualified name of an assembly?

查看:115
本文介绍了如何找到一个程序集的完全限定的名字吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何找到我的程序集的完全限定名称,例如:

How do I find out the fully qualified name of my assembly such as:

MyNamespace.MyAssembly, version=1.0.3300.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089

我已经成功地让我的公钥使用 SN.EXE 在SDK,但I'ld喜欢轻松地获得完整的合格的名称。

I've managed to get my PublicKeyToken using the sn.exe in the SDK, but I'ld like to easily get the full qualified name.

推荐答案

如果您可以将程序集加载到.NET应用程序,你可以这样做:

If you can load the assembly into a .NET application, you can do:

typeof(SomeTypeInTheAssembly).Assembly.FullName

如果你不能,那么你可以使用程序Ildasm.exe,这将是在那里的某个地方:

If you cannot then you can use ildasm.exe and it will be in there somewhere:

ildasm.exe MyAssembly.dll /text

这篇关于如何找到一个程序集的完全限定的名字吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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