Give a source .cs file as simple as below, is there any way to produce identical .dlls with MSBuild (or at least with csc.exe), so their binary hash would match?
foo.cs
public class Foo
{
public int Bar;
}
foo.bat
del foo*.dll
csc /t:library foo.cs
move foo.dll foo1.dll
csc /t:library foo.cs
move foo.dll foo2.dll
powershell -Command "Get-ChildItem foo*.dll | ForEach-Object { $_.CreationTime = $_.LastWriteTime = $_.LastAccessTime = \"2013-03-15\" }"
Sample binary diff report is at https://dl.dropbox.com/u/65419748/CscBin.html
Does anyone know what those differences are and how to get around them?