how to read the assembly manifest without loading the .dll

前端 未结 6 1519
南旧
南旧 2021-01-05 21:34

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

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-05 22:06

    Kumar,

    You CAN unload .Net DLLs but you have to use the AppDomain object to load them in the first place and then again to unload.

    Take a look: http://msdn.microsoft.com/en-us/library/system.appdomain(VS.80).aspx

    If you still want to avoid this type of process, i suppose you could parse the the DLL yourself but that would be much more work than using the AppDomain i think.

    -p

提交回复
热议问题