Sometimes, when a complex project (many source solutions, dlls, references) is built and run, then we receive a problem with references (here we don't speak about signed assemblies). For example, all dlls has a reference to basic .dll, but a specific .dll has a reference to obsolete version of the basic .dll.
Sample:
MainUtils has a reference to Utils1 (v2.0.0.0) and Utils2 (v2.0.0.0), but Utils2 (v2.0.0.0) has a reference to obsolete version of Utils1 (v1.0.0.0). See folders TestData4References in solution csharp-samples.
When a MainUtils will be run, then a error can be shown.
Utility ReferencesManager.exe helps to show all references and output list of all assemblies full names. This information helps to see same assemblies with different versions.
To start the utility it is necessary to type name of initial executable (or .dll) file:
ReferencesManager.exe MainUtils.exe > MainUtils.log
Content of MainUtils.log:
Received log allows to find Utils1 with different versions 1.0.0.0 and 2.0.0.0 and Utils2, which references to Utils1 version 1.0.0.0.
Limitations of version 1.0.1:
- The utility finds assemblies in GAC and in folder of initial assembly only.
- The utility doesn't find referenced (in c# source project), but actually not used assemblies.
- The utility doesn't output list of problematic assemblies.
Downloading ReferencesManager.exe.
References:
No comments:
Post a Comment