Determine whether .NET assemblies were built from the same source

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 … Read more

Why is the binary output not equal when compiling again?

ANOTHER UPDATE: Since 2015 the compiler team has been making an effort to get sources of non-determinism out of the compiler toolchain, so that identical inputs really do produce identical outputs. See the “Concept-determinism” tag on the Roslyn github for more details. UPDATE: This question was the subject of my blog in May 2012. Thanks … Read more

How to store CMake build settings

There is an option to pre-load a script for populating the cache file with cmake using cmake -C <initial-cache> The initial-cache is a file containing variables set in the following way, e.g. for the install prefix: set(CMAKE_INSTALL_PREFIX “/my/install/prefix” CACHE PATH “”) Then just pass this file while populating the cache with cmake. Easy, but I … Read more