Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p><strong>NOTE</strong>: Based on the comments from the post below, I suppose this might miss unmanaged dependencies as well because it relies on reflection.</p> </blockquote> <p>Here is a small c# program written by Jon Skeet from bytes.com on a <a href="http://bytes.com/topic/net/answers/107335-net-dependency-walker#td_post_381010" rel="nofollow noreferrer">.NET Dependency Walker</a></p> <pre class="lang-cs prettyprint-override"><code>using System; using System.Reflection; using System.Collections; public class DependencyReporter { static void Main(string[] args) { //change this line if you only need to run the code one: string dllToCheck = @""; try { if (args.Length == 0) { if (!String.IsNullOrEmpty(dllToCheck)) { args = new string[] { dllToCheck }; } else { Console.WriteLine ("Usage: DependencyReporter &lt;assembly1&gt; [assembly2 ...]"); } } Hashtable alreadyLoaded = new Hashtable(); foreach (string name in args) { Assembly assm = Assembly.LoadFrom(name); DumpAssembly(assm, alreadyLoaded, 0); } } catch (Exception e) { DumpError(e); } Console.WriteLine("\nPress any key to continue..."); Console.ReadKey(); } static void DumpAssembly(Assembly assm, Hashtable alreadyLoaded, int indent) { Console.Write(new String(' ', indent)); AssemblyName fqn = assm.GetName(); if (alreadyLoaded.Contains(fqn.FullName)) { Console.WriteLine("[{0}:{1}]", fqn.Name, fqn.Version); return; } alreadyLoaded[fqn.FullName] = fqn.FullName; Console.WriteLine(fqn.Name + ":" + fqn.Version); foreach (AssemblyName name in assm.GetReferencedAssemblies()) { try { Assembly referenced = Assembly.Load(name); DumpAssembly(referenced, alreadyLoaded, indent + 2); } catch (Exception e) { DumpError(e); } } } static void DumpError(Exception e) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Error: {0}", e.Message); Console.WriteLine(); Console.ResetColor(); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload