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

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

问题描述

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

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

我已设法使用 SDK 中的 sn.exe 获取我的 PublicKeyToken,但我想轻松获取完整的限定名称.

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天全站免登陆