如何查看我的程序集的强名称? [英] How can I see the strong name of my assembly?

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

问题描述

我有一个项目,我为它创建了一个强名称密钥文件.

I have a project, and I created a strong name key file for it.

我如何知道我的程序集的强名称是什么?看起来这应该是显而易见的,但我找不到任何参考.

How can I tell what the strong name of my assembly is? It seems this should be obvious, but I can't find any reference to it.

推荐答案

您可以使用 Reflector 或 ILSpy 等工具获取完全限定名称.选择程序集,它应该在它的顶部.对于 ILSpy 中的 XNA:

You can get the Fully Qualified Name by using a tool like Reflector or ILSpy. Select the assembly and it should be in top of it. For XNA in ILSpy :

//C:Program Files (x86)Microsoft XNAXNA Game Studiov4.0ReferencesWindowsx86Microsoft.Xna.Framework.dll//Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553

如果您不想使用这些工具,可以使用 Windows 资源管理器和 Visual Studio 命令提示符找出完全限定名称.

If you don't want to use those tools, you can figure out the Fully Qualified Name using windows Explorer and Visual Studio Command Prompt.

首先,右键单击Assembly DLL -> Properties -> Details.您可以在此处找到程序集的名称、版本和文化.

First, right click on the Assembly DLL -> Properties -> Details. Here you can find the name, version and Culture of your Assembly.

对于公钥,启动 Visual Studio 命令提示符并写入:

For the public key, launch Visual Studio Command prompt and write :

sn -Tp YourAssembly.dll

它会给你公钥.

现在您可以伪造完全限定名称.

Now you can forge Fully Qualified Name.

这篇关于如何查看我的程序集的强名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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