How to always produce byte-for-byte identical .exe on rebuild of C# application?

后端 未结 6 836
孤独总比滥情好
孤独总比滥情好 2021-02-05 07:47

I\'ll give you a little bit of background first as to why I\'m asking this question:

I am currently working in a stricly-regulated industry and as such our code is quite

6条回答
  •  半阙折子戏
    2021-02-05 08:31

    I'm not sure about this, but just a thought: are you using any anonymous types for which the compiler might generate names behind the scenes, which might be different each time the compiler runs? Just a possibility which occurred to me. Probably one for Jon Skeet ;-)

    Update: You could perhaps also use Reflector addins for comparison and disassembly.

提交回复
热议问题