dll version

  • Thread starter Thread starter Andrew Collett
  • Start date Start date
A

Andrew Collett

When I call a class in a dll from an application, how do I tell the version
of the dll as oposed to the application calling the dll?
Andrew
 
Hi Andrew,

You can use Activator.CreateInstance and specify the desired version of the
assembly in the assembly name argument of the corresponding method overload.
 
Hello,

Andrew Collett said:
When I call a class in a dll from an application, how
do I tell the version of the dll as oposed to the application
calling the dll?

You can use the 'FileVersionInfo' class to get the version number of a DLL.
 
Andrew,
When I call a class in a dll from an application, how do I tell the version
of the dll as oposed to the application calling the dll?

If you have a System.Reflection.Assembly reference for the assembly,
you can check the version with Assembly.GetName().Version.



Mattias
 

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

Back
Top