Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine assembly versions used by/referenced in another assembly

Tags:

c#

assemblies

Is there a tool that can list the exact versions and public keys of all assemblies referenced in another assembly?

I inherited a solution that contains a medium number of projects each referencing various external assemblies. The test project cannot execute because libraries referenced by it have references to different versions of the same assembly. I need to track down who's referencing what so I can fix it.

Some of the references are in the projects, some are in the external libraries.

Update: To clarify, I'd prefer a command line tool so I can automate this hunt.

like image 492
Thomas Jung Avatar asked Jun 23 '09 18:06

Thomas Jung


2 Answers

Reflector can show you this; click on the assemblies under the References folder, and you can check the version number below the list:

alt text

like image 91
Fredrik Mörk Avatar answered Oct 17 '22 10:10

Fredrik Mörk


You can use the Fusion Log Viewer to determine exactly what is failing to load as opposed to manually walking dependencies in Reflector or ILDasm.

http://msdn.microsoft.com/en-us/library/e74a18c4(vs.71).aspx

like image 4
Adam Sills Avatar answered Oct 17 '22 10:10

Adam Sills