__DATE__ and __FILE__ equivalents.

  • Thread starter Thread starter Jeffrey Bradshaw
  • Start date Start date
J

Jeffrey Bradshaw

Are there compile date/time and file line equivalents for __DATE__ and
__FILE__ in C#?
 
Jeffrey,

These things do not exist in C#. You will have to embed that
information in your code somehow. When you compile your assemblies in debug
mode, the file information is included by default. As for the compilation
date, you are going to have to embed that yourself (through the use of an
attribute, perhaps).

Hope this helps.
 
Back
Top