问题描述
我有一个项目,并为此创建了一个强名称密钥文件。
如何知道程序集的强名称是什么?看来这应该很明显,但我找不到对此的任何引用。
您可以获得完全限定的名称通过使用Reflector或ILSpy之类的工具。选择程序集,它应该在它的顶部。对于ILSpy中的XNA:
// C:\Program Files(x86)\Microsoft XNA\XNA Game Studio\v4。 0 \参考\ Windows \ x86 \ Microsoft.Xna.Framework.dll
// Microsoft.Xna.Framework,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 842cf8be1de50553
如果不想使用这些工具,则可以使用Windows资源管理器和Visual Studio命令提示符来找出完全合格的名称。
首先,右键单击Assembly DLL-> Properties-> Details。在这里您可以找到程序集的名称,版本和区域性。
对于公共密钥,启动Visual Studio Command提示符并输入:
sn -Tp YourAssembly.dll
它将为您提供公钥。 / p>
现在您可以伪造全名了。
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.
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 XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll// Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553
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.
First, right click on the Assembly DLL -> Properties -> Details. Here you can find the name, version and Culture of your Assembly.
For the public key, launch Visual Studio Command prompt and write :
sn -Tp YourAssembly.dll
It will give you the public key.
Now you can forge Fully Qualified Name.
这篇关于如何看到程序集的强名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!