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
 

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