cecil icon indicating copy to clipboard operation
cecil copied to clipboard

implement build independent hash

Open danielcrenna opened this issue 6 years ago • 3 comments

per https://groups.google.com/forum/#!topic/mono-cecil/AGq0LfBdqjo

@jbevain this is an implementation of the above, very old Google Group discussion, so things may have changed since then other than API specifics.

Let me know if, with the addition of appropriate tests, that this could be accepted, or if there are alternatives to achieving the same result.

danielcrenna avatar Sep 01 '19 22:09 danielcrenna

@danielcrenna is it possible to have a test that verifies these changes?

SimonCropp avatar Sep 01 '19 23:09 SimonCropp

You bet, it’s an old thread so I wanted to check if this was still relevant first — that the injection of file checksums, timestamps, and module MVID would produce non-deterministic hashes for an assembly built with otherwise identical source code.

It could also be a “Nope” to implement this in core if the aim is to encourage more practical ways (such as custom attributes).

I need this on a project that needs to avoid rebuilding packages at runtime and doesn’t have access to a build pipeline that could stamp a build hash into the assembly itself.

Will submit tests this evening.

On Sep 1, 2019, at 7:08 PM, Simon Cropp [email protected] wrote:

@danielcrenna is it possible to have a test that verifies these changes?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

danielcrenna avatar Sep 01 '19 23:09 danielcrenna

just to be clear, i am not a maintainer, and cant speak to the relevance.

SimonCropp avatar Sep 01 '19 23:09 SimonCropp