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
 
Back
Top