A MVID is generated for all assemblies - regarless if they go into the GAC or not; this can be determined by opening any assembly with ildasm. A hash and the MVID are totally different, a hash is a hash whereas a MVID is a GUID that is generated for an assembly when it is created.
I wasn't speaking of the GetHashFromFile, I was referring to the GetScopeProps method. All of this can be seen by looking at the sample application I refer to in my previous email. Brian Patterson -----Original Message----- From: J. Merrill [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 1:47 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] How to read MVID and assembly hash? Is the MVID value computed in un-GACd assemblies? That is, there's no need to have the hashed value unless the assembly is going into the GAC -- is there? (And certainly if the assembly was built with /delaysign it won't have the MVID, will it?) The (unmanaged API) docn for GetHashFromFile (the API I think you were looking at) says it "generates a hash over the contents" rather than "retrieves the stored MVID". Perhaps it's easier to call than one of the managed or unmanaged HashAlgorithm's, but perhaps not. . CONFIDENTIALITY NOTICE: This communication, including any attachments, is intended only for the use of the individual or entity to which it is addressed and contains information which may be confidential. If you are not the intended recipient, any distribution or copying of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately, delete the communication and destroy all copies. Thank you for your compliance. =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
