Read assembly Guid without locking the DLL in an appdomain in medium trust ASP.Net

Posted by ggonsalv on Stack Overflow See other posts from Stack Overflow or by ggonsalv
Published on 2010-05-27T16:06:49Z Indexed on 2010/05/29 0:42 UTC
Read the original article Hit count: 390

Filed under:
|
|
|
|

Is it possible to read the GUID from the Assembly without actually loading it in the current App Domain.

Normally Assembly.Load loads the DLL into the app domain. I just want to read the value.

The description of the GUID is

'The following GUID is for the ID of the typelib 
' if this project is exposed to COM
<Assembly: Guid("DEDDE61CD-928E-4ACD-8C25-3B8577284819")> 

The main thing is I don't want to lock the file so that there are no errors 'Another process is accessing the file' error.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET