Hi guys
Is there a way by which I can programmatically determine the build time of
an assembly? I would like to show the following information in the "About"
box of my application: Application Name, Version and Build Time.
I do not want to do the following:
- Use the last two parts of the assembly version to encode the time
- Get the last modified time from the assembly file using (say) the
FileInfo class
In C/C++, this is how I'd have done this:
#define BUILD_TIME __TIME__
void OnAbout() {
...
MessageBox(BUILD_TIME);
...
}
I know C# supports a preprocessor. Can I do something similar to the above
in C#? Otherwise what other options do I have?
Thanks
Raj
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com