Basically I need a field containing a compile timestamp. How can this be archived?
DateTime compileDateTime = //At Compiletime: DateTime.Now
The field might also be defined as a constant.
It is crucial that the field is defined at compile time. The application is executed on an embedded device in "sandbox mode". There is no access to the file system, so the assembly itself can not be loaded to retrieve the time stamp.
To make it more clear. (Since to many people where focused on retrieving the build date from the assembly) I could also ask to "hardcode" a random number for every build.
int myConstNumberForThisBuild = //At compile-time: new Random().Next()