Getting assembly version without loading it

  • Thread starter Thread starter nano2k
  • Start date Start date
N

nano2k

Hi

I need to get the version of an assembly without having to load it
neither using Assembly class's Load methods, nor by using new
appdomains.
It's quite complicated for me to explain exactly why. Manly is because
I don't the loaded assembly to remain loaded (because no
Assembly.Unload() method exists). Second, I can't manage to load it
using appdomains because i don't have all the dependencies of the
assembly. That is, this assembly depends on 10 other aseemblies, but i
only have the main assembly.

Maybe a shell command exists?
Thanks
 
I need to get the version of an assembly without having to load it
neither using Assembly class's Load methods, nor by using new
appdomains.

You can use the AssemblyName class and its GetAssemblyName method.


Mattias
 
Mattias said:
You can use the AssemblyName class and its GetAssemblyName method.


Mattias

You could look at the assembly file with ildasm.exe and get the version
from there.
 
Back
Top