Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Is there a possibility to add the time of compilation to a program in C#?

Well, I just want to write the time of compilation into the title bar of the program. Of course "MyWindowCaption" + DateTime.Now; only adds the execution time to the program.

Is there a way to write the build time into the title bar?

2 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    The file date and time of the program file is the compilation date and time.

  • ?
    Lv 4
    4 years ago

    The console maintains to be open as long because of the fact this methodology runs. whilst it finishes working the console closes. the two open the console, then run this methodology from in the console, or placed a readln on the top of this methodology, with a instantaneous: write("Press enter to close this window."); readln(some character variable right here);

Still have questions? Get your answers by asking now.