How to compute a hash of assembly, so that this hash could be used to tell if the code in the assembly has changed?
问题 The problem is that rebuilding exactly the same code generates a different assembly when compared with the result of the previous build. Why do I need this? I have a T4 template that generates certain source code from the given contract assembly. That source code is checked in into VCS, even though it is generated. This is because the contract assembly changes relatively infrequently. However, when it does change, I would like to fail the build as long as the aforementioned T4 template is not