I understand that repeat builds of an assembly from the same source code produce binaries with tiny differences: http://blog.paranoidcoding.com/2016/04/05/deterministic-builds-in-roslyn.html
- MVID: a GUID identifying the PE which is newly generated for every PE produced by the compiler 1.
- PDB ID: a GUID identifying the PDB matching PDB which is newly generated on every build.
- Date / Time stamp: Seconds since the epoch which is calculated on every build.
What does that imply for Assembly.Evidence ? Is it consistent between repeat builds (from the same source code)?
In particular, Assembly.Evidence.OfType<Hash>
. How is the hash calculated? Does it depend on the variables above? Ideally for me, the hash would depend on the rest of the assembly, excluding the identifiers that vary.