Determine whether .NET assemblies were built from the same source

前端 未结 7 1074
独厮守ぢ
独厮守ぢ 2020-12-02 17:38

Does anyone know of a way to compare two .NET assemblies to determine whether they were built from the \"same\" source files?

I am aware that there are some differen

相关标签:
7条回答
  • 2020-12-02 18:03

    It's not too painful to use command-line tools to filter out MVID and date-time stamps from a text representation of the IL. Suppose file1.exe and file2.exe are built from the same sources:

    c:\temp> ildasm /all /text file1.exe | find /v "Time-date stamp:" | find /v "MVID" > file1.txt

    c:\temp> ildasm /all /text file2.exe | find /v "Time-date stamp:" | find /v "MVID" > file2.txt

    c:\temp> fc file1.txt file2.txt

    Comparing files file1.txt and FILE2.TXT

    FC: no differences encountered

    0 讨论(0)
提交回复
热议问题