Just use asmDef.Name.Hash[Algorithm]?
Regards,
Alex
2011/6/18 Florian <sta...@gmx.de>:
> --
> --
> mono-cecil
I could use this code as well
On 18 Jun 2011 16:30, "Florian" <sta...@gmx.de> wrote:
Well as it seems, the locations of TimeDateStamp and FileChecksum are
quite easy to find. Their positions can be found in the DOSHeader and
in PEOptionalHeader, the first two headers read from a assembly file
(looked the code up in Mono.Cecil.PE.ImageReader.ReadImage()).
Unfortunately locating the position of MVID is more complicated.
I am not quite sure what to do. Changing the sourcecode of ImageReader
on my local machine to save the byte positions of those three fields
would be the easiest thing to do. This way I could later on build a
file hash that ignores these fields and reuse the filehash on
different dlls / exes built on the same sources to get them compared.
But of course every time the next Mono.Cecil version is released I
would have to do the same changes again and again.
@JB: Would you bother including such a hashing method in the
Mono.Cecil sources if I can provide you a proper implementation that
meets your quality expectations? I guess the requirement I have there
would also be present for other people, for example for working with
continuous integration build systems.
Best Regards Florian
On 18 Jun., 15:57, Florian <sta...@gmx.de> wrote:
> Hi Alex,
>
> thanks for the pointer, I didnt k...
> > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--
--
mono-cecil
--
--
mono-cecil