Skip to content

Instantly share code, notes, and snippets.

@lars-erik
Created September 13, 2013 14:02
Show Gist options
  • Save lars-erik/6551154 to your computer and use it in GitHub Desktop.
Save lars-erik/6551154 to your computer and use it in GitHub Desktop.
See all referenced assemblies and their references. (Nice when in the middle of dll hell)
<%@ Page Language="C#" AutoEventWireup="true" %>
<%
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
Response.Write("<b>" + assembly.FullName + "</b><br/>\r\n");
Response.Write("<ul>\r\n");
foreach (var subAssembly in assembly.GetReferencedAssemblies())
{
Response.Write("<li>" + subAssembly.FullName + "</li>\r\n");
}
Response.Write("</ul>\r\n");
}
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment