Assembly Id

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

Hi

I am trying to find out how to associate an assembly name with a dll file
name. I am creating dynamic assemblies and must perform
ReferencedAssemblies.Add() operations. I know the name of the assemblies I
need for the using clauses, but not the names of the corresponding DLLs for
the ReferencedAssemblies.Add() operations.

I am using C# as the base for a rule based system. The code is written and
the 'using' clauses are parsed out identifying the assemblies needed. I
need a map from 'using' to '.DLL'.

Thanx,
Bill
 
Hi,

This might be not 100% true but in most cases the name of the file with the
extension removed equals to the assembly name expected by the
ReferencedAssemblies.Add() method. You might also wish to specify a fully
qualified name with version, public key token (if the assembly has a strong
name) etc.

You could refer to the AssemblyName class documentation for more info.
 
Back
Top