且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何查看我的程序集的强名称?

更新时间:2023-12-02 15:35:40

您可以使用 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.