Version of seperate dll

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?
 
M

Maloney

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.
 
L

Lloyd Dupont

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top