Imports System.Reflection Module Module1 Sub Main() Dim thisAssembly As [Assembly] = [Assembly].GetExecutingAssembly() Console.WriteLine("Referenced Assemblies: ") Dim RefAssembly As AssemblyName For Each RefAssembly In thisAssembly.GetReferencedAssemblies() Console.WriteLine(RefAssembly.FullName) Next End Sub End Module
Referenced Assemblies: mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089