Why is the binary output not equal when compiling again?

后端 未结 4 664
南旧
南旧 2020-12-01 13:33

I\'m using a build script to compile several C# projects. The binary output is copied to a result folder, overwriting the previous version of the files, and then added/commi

4条回答
  •  失恋的感觉
    2020-12-01 14:31

    Yes, the compiler includes a timestamp. Additionally, in some cases the compiler will auto-increment the assembly version number. I haven't seen any guarantee anywhere that the binary result is meant to be identical.

    (Note that if the source is already in Subversion, I'd generally steer clear of also adding the binary files in there. I'd usually only include releases of third-party libraries. It depends on exactly what you're doing though.)

提交回复
热议问题