When I do a clean build my C# project, the produced dll is different then the previously built one (which I saved separately). No code changes were made, just clean and rebuild.
Diff shows some bytes in the DLL have changes -- few near the beginning and few near the end, but I can't figure out what these represent. Does anybody have insights on why this is happening and how to prevent it?
This is using Visual Studio 2005 / WinForms.
Update: Not using automatic version incrementing, or signing the assembly. If it's a timestamp of some sort, how to I prevent VS from writing it?
Update: After looking in Ildasm/diff, it seems like the following items are different:
- Two bytes in PE header at the start of the file.
- <PrivateImplementationDetails>{guid} section
- Cryptic part of the string table near the end (wonder why, I did not change the strings)
- Parts of assembly info at the end of file.
No idea how to eliminate any of these, if at all possible...