Keeping in mind that I've never used the API myself, I think you'll need to
resort to the native metadata API support that's defined in <program
files>\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers
Guide\docs\Metadata Unmanaged API.doc.  Specifically, section/chapter 4.

I don't know of a managed API equivalent for getting the same information - at
least not in the SDK.  It's possible that someone's written managed wrappers
around the above APIs, but you'd have to look around on the web for those -
they're not part of the SDK.

-Mike
http://www.bearcanyon.com


>
> -----Original Message-----
> From: Moderated discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of Luca Minudel
> Sent: Monday, September 15, 2003 3:28 PM
> To: [EMAIL PROTECTED]
>
> I like to get a unique identifier of a compiled assembly,
> this identity will
> be attached to results of tests logged in a file.
> The assembly source code is available thus it can be changed and/or
> recompiled by someone else.
> Because one of the assemblies does not have a strong name I
> cannot rely only
> on it.
>
> How can I programmatically read the module version identifier
> (MVID) of an
> assembly module (the unique identifier given to the module at every
> compilation)?
>
> How can I programmatically calculate the hash value of an
> Assembly (the
> assembly hash that CLR uses to make sure the assembly hasn't
> been altered)?
>
> TIA (luKa)
>
> ===================================
> This list is hosted by DevelopMentorR  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
>

===================================
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

Reply via email to