asserting assembly's strong name

  • Thread starter Thread starter Rea Peleg
  • Start date Start date
R

Rea Peleg

Hi All
My application need's to check its assemblies strong name, prior to using
them.
Is there a way to get an assembly 's name,culture,version and key attributes
without loading it first??

I know this information can be retrived from a web application configuration
file,
but I would like to get this information without comunicating to the server.

May be retrieve it from a manifest file??

Thanks for every clue as for how this is done :))

TIA
Rea
 
Rea,
Is there a way to get an assembly 's name,culture,version and key attributes
without loading it first??

System.Reflection.AssemblyName.GetAssemblyName(). However that takes a
local file path, and it sounds like you want to retrieve this from a
web location. If so you'll have to download the assembly first.



Mattias
 
Woderful!
Exactly what I need!
All the assemblies I need to check are installed already at client side.
So your sugestion seems perfect for me.
I have one final question - the following sentence is taken from .NET help
for
'AssemblyName.GetAssemblyName()' :
"...This method causes the file to be opened and closed, but the assembly is
not added to this domain."
Does this meen the assembly is not loaded, but only it's manifest is being
opened for reading
and than closed?
Thanks again for your help.
Rea
 
Back
Top