Until now, I compiled my project from VS and now I moved compilation process to a script.
I use vcbuild.exe
with command line parameters for this purpose.
What I see is that my output files is not bytewise similar at all.
I compared a command line from VS and from my script and it's identical down to the last comma, so I really don't understand why it's so different.
Command line identical from VS compilation and from vcbuild
log (line breaks added for clarity):
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe
/noconfig
/unsafe-
/nowarn:1701,1702
/platform:x86
/errorreport:prompt
/define:TRACE
/reference:C:\blahblah.dll
/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll
/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll
/debug:pdbonly
/optimize+
/out:obj\x86\Release\blah.exe
/target:winexe
/win32icon:blah.ico
..\..\blah\version.cs
Program.cs
Properties\AssemblyInfo.cs