il-repack
il-repack copied to clipboard
Deterministic assembly creation
With the recent changes done in Roslyn to allow reproducible builds, it would be useful in il-repack had that option as well.
As far as I can tell, there are at least 3 things preventing this, with 2 of them requiring changes to Cecil:
- New names of renamed types This could be probably handled by producing a GUID from a hash of some of the type/assembly/etc. values.
- The generated assembly's MVID Roslyn uses a hash of the assembly as a source for the MVID
- The PE timestamp Roslyn also uses a hash for this field with the upper bit set dotnet/coreclr#1615