Version of seperate dll

  • Thread starter Thread starter Maloney
  • Start date Start date
M

Maloney

I've seen how to get the version of the currently running exe

String ver = Assembly.GetExecutingAssembly().GetName().Version.ToString();
but how do i get the version of an external .dll that I link to?
 
I don't understand the typeof. I want the version of a seperate dll. for
instance i link to the the dll 'Link.dll', what is the version of 'Link.dll.
typeof expectes a class type.
 
the idea is to get a reference to this dll as an assembly object.

if it's early binding, choose a class in it, get its type, then its
assembly, and then here you go !

if it's late binding (a plugin) well, you should already have an assembly
reference, don't you ?

otherwise, well, explain...
 
Back
Top