.net - Check to see if a compiled dll has changed? -


we trying figure out way see if dll on user pc different deployment server. can't use timestamp because our build script builds everytime (and way want keep it). prefer not use version # because can see people forgetting lot. of our dlls change time (at least couple times week). tried create xml file md5 hash of every file apparently won't work because hash changes every time compile if there no changes. there other way?

since dlls produce different hashes, it's clear changes on each compile. perhaps internal timestamp-driven or randomized.

theoretically it's possible using reflection or ildasm , smart comparison of results, lot harder revising process use incrementing version strings.

i suggest automate build process , automatically increment version string in assemblyinfo.cs each build. if using source control, build script check out, increment it, , check in.

hope helps.


Comments