The problem:
I am trying to create a function that creates a hash code of the source code of my asp.net web application backend.
As long as nothing gets changed, this hash code needs to be identical. Even if I rebuild my project.
Does someone know, how I can do that?
What I tried:
The only working solution I found is to concat all important files to a big string and create a hash code out of it.
The problem of this solution is, that I have to add all the source files to the output directory, what shouldn't be done for security reasons.
Hope someone has a great idea =)
Thanks in advance!
Update:
I could solve my problem by enabling deterministic build as Renat suggested.
Just added the deterministic flag to my .csproj file as follows:
<Deterministic>True</Deterministic>