Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to read the assembly manifest without loading the .dll

Essentially need to read the dependencies programmatically without loading the assembly itself, as then you can't unload them

like image 564
Kumar Avatar asked Jul 31 '09 14:07

Kumar


People also ask

How do you view an assembly manifest?

To view assembly manifest information, double-click the Manifest icon in the MSIL Disassembler window.

Are DLL files in assembly?

Any DLL built from a . NET project is an assembly, as is an executable. Assemblies not only contain the CLI code for running under the Common Language Runtime, they also contain full information about the classes and structure of the code in the assembly.

What is the difference between DLL and assembly?

The Difference of EXE and DLL DLL stands for Dynamic Link Library and EXE is nothing but the executable. An EXE assembly actually runs in its own address space while a DLL can not run by itself.

What is assembly manifest file?

An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a PE file (an .exe or .


1 Answers

found this System.Reflection.Assembly.ReflectionOnlyLoadFrom(path) does the trick

like image 93
Kumar Avatar answered Nov 14 '22 21:11

Kumar