Click here to Skip to main content
15,881,898 members
Articles / Programming Languages / C#
Article

Discover Assembly References

Rate me:
Please Sign up or sign in to vote.
2.19/5 (8 votes)
7 May 2008CPOL1 min read 22.5K   125   8   5
Monitor assembly references of a software project

Introduction

This article shows the mechanism of reflection for loading assemblies that can be very useful to trace references of several modules involved in a software project.

Background

Number of involved assemblies in an IT project grows exponentially, especially with large and modular projects.

Typically, if the system has been planned well, single DLLs are referenced once in a system to avoid circular or repetitive references in different places of the system.

Sometimes, developers lose sight of these references with a specific version that is not influential for assembly loading, but in a fast paced development environment the specific version of an assembly can be important.

Points of Interest

There are some basic assemblies that are always included as references. For example, mscorlib.dll is always included. Admitting that a folder contains all application assemblies of a fixed system, we can discover all references which match with a fixed string filter. For example, if the team leader in an IT project establishes that all assemblies must have the name enterprise(*).dll, we could want to know all assembly references developed internally.

Using the Tool

The tool is very simple to use and it's open to future ideas and developments. The filter field can be valued with a string with which we want to match the discovered assembly's names.

Image 1

History

  • 7th May, 2008: Version 1.0.0.0 - Provides the basic mechanism to reflect assemblies information

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Systems Engineer Expert System
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionHuh? Pin
PIEBALDconsult7-May-08 4:46
mvePIEBALDconsult7-May-08 4:46 
AnswerRe: Huh? Pin
ralf palm7-May-08 4:55
ralf palm7-May-08 4:55 
GeneralRe: Huh? Pin
PIEBALDconsult7-May-08 13:05
mvePIEBALDconsult7-May-08 13:05 
GeneralNo source code Pin
leppie7-May-08 3:49
leppie7-May-08 3:49 
GeneralRe: No source code Pin
ralf palm7-May-08 4:35
ralf palm7-May-08 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.