Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

Discover Assembly References

2.19/5 (8 votes)
7 May 2008CPOL1 min read 1   125  
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)