How to know the Version of a DLL used in the application?

  • Thread starter Thread starter DraguVaso
  • Start date Start date
D

DraguVaso

Hi,

Does anyone knows how to determine the version o a dll used in a
application?

I have an application that uses a dll from another company, but
unfortunately that dll is sometimes more than one a a pc, and I want to knwo
which one (which directory) it is using, and which version. It's the
application itself that has to determine this (and write it to a database).

Thanks a lot in advance,

Pieter
 
Hi Peter,

You can use the fuslogvw tool.

Locate the reg key HKLM\Software\Microsoft\Fusion

Add a DWORD value and name it 'ForceLog'

Set the value to 1.

You can now run the fuslogvw tool and you will see all
the assembly bindings.
 
Does anyone knows how to determine the version o a dll used in a
application?

If it's a managed assembly you're loading, you can check
System.Reflection.Assembly.GetName().Version

For native DLLs you can use the FileVersionInfo class.



Mattias
 
Back
Top