Getting information on an assembly in GAC

  • Thread starter Thread starter Seema
  • Start date Start date
S

Seema

Hi all,

I am writing a small program in C#, which should check for
an existance of assembly in the GAC, and get its version.
Does anyone know how I can accomplish this task?

I looked at GetVersionInfo, but that only is good for
getting version info on files.

Any help would help.

thx
Seema
 
One way to do this is to
have Assembly.Load method
if it succeeds then we can check on the property
GlobalAssemblyCache to see whether it was loaded from GAC
You can use asmbly name.Version for the version
 
Back
Top