Getting the PublicKeyToken of .Net assemblies

前端 未结 13 1090
忘掉有多难
忘掉有多难 2020-11-30 16:57

What is the simplest way to find the Public-Key-Token of an assembly?

The simplest way I can think of would be a simple right-click, get public key, but this functio

13条回答
  •  粉色の甜心
    2020-11-30 17:39

    If you have included the assembly in your project, you can do :

                var assemblies =
                    AppDomain.CurrentDomain.GetAssemblies();
    
    
                foreach (var assem in assemblies)
                {
                        Console.WriteLine(assem.FullName);
                }
    

提交回复
热议问题