How to get Names of DLLs used by application

前端 未结 6 939
旧巷少年郎
旧巷少年郎 2021-01-11 09:26

I\'m looking the way to read all assemblies (.dlls) used by my app.

In a standard C# project there is \"References\" folder, when it is expanded I can read all lib

6条回答
  •  孤城傲影
    2021-01-11 10:10

    System.Reflection.Assembly []ar=AppDomain.CurrentDomain.GetAssemblies();
    
    foreach (System.Reflection.Assembly a in ar)
    {
     Console.WriteLine("{0}", a.FullName);
    }
    

提交回复
热议问题