string[] fileNames = ...; // get all the filenames foreach (string fileName in fileNames) { var assembly = System.Reflection.Assembly.ReflectionOnlyLoadFrom(fileName); var referencedAssemblies = assembly.GetReferencedAssemblies(); foreach (var assemblyName in referencedAssemblies) { // do your comparison } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter