June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to list all the assemblies that are required by another assembly.
Use the Assembly.GetReferencedAssemblies method.
All .NET assemblies include a header that lists assembly references. If the referenced assembly has a strong name, the header includes the required version and public key for the referenced assembly.
Once you retrieve a reference to an assembly, it’s easy to find its dependencies using the GetReferencedAssemblies method. Consider this code, which iterates through the assembly references of the current executing assembly:
Public Module TestReflection Public Sub Main() Dim ExecutingAssembly As System.Reflection.Assembly ExecutingAssembly = System.Reflection.Assembly.GetExecutingAssembly() ...
Read now
Unlock full access